mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Update docs vars to work with RTD changes (#6410)
This commit is contained in:
parent
d304da7a16
commit
005b8af10a
2
docs/_templates/layout.html
vendored
2
docs/_templates/layout.html
vendored
@ -5,7 +5,7 @@
|
||||
<p class="first admonition-title">Warning</p>
|
||||
<p class="last">
|
||||
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 <a href="{{ dict(versions)['stable'] }}">Red documentation for the current stable release</a>.
|
||||
If you're a regular user, you should read the <a href="/{{ rtd_language }}/stable/">Red documentation for the current stable release</a>.
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@ -139,6 +139,9 @@ html_context = {
|
||||
"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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user