From 005b8af10aaddd471fca70c7960f271ddc671344 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Wed, 11 Sep 2024 05:32:36 +0200 Subject: [PATCH] Update docs vars to work with RTD changes (#6410) --- docs/_templates/layout.html | 2 +- docs/conf.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 996058f3102..4ee04f8e727 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -5,7 +5,7 @@

Warning

This document is for Red's development version, which can be significantly different from previous releases. - If you're a regular user, you should read the Red documentation for the current stable release. + If you're a regular user, you should read the Red documentation for the current stable release.

{% endif %} diff --git a/docs/conf.py b/docs/conf.py index b967f299d28..c280f1b2978 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -139,6 +139,9 @@ "github_user": "Cog-Creators", "github_repo": "Red-DiscordBot", "github_version": "V3/develop", + "version_slug": os.environ.get("READTHEDOCS_VERSION", ""), + "rtd_language": os.environ.get("READTHEDOCS_LANGUAGE", ""), + "READTHEDOCS": os.environ.get("READTHEDOCS", "") == "True", } # Add any paths that contain custom static files (such as style sheets) here,