aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-07-01 00:37:35 -0400
committerRapptz <[email protected]>2019-07-01 00:37:35 -0400
commit4c917d10dead530273a64919c5fd8a7afec9eafe (patch)
treee27cb770c8b836a4f0303ee572a1940e3d316eb1 /docs
parentFlatten genindex to not group names. (diff)
downloaddiscord.py-4c917d10dead530273a64919c5fd8a7afec9eafe.tar.xz
discord.py-4c917d10dead530273a64919c5fd8a7afec9eafe.zip
Use the standard way of detecting RTD
Diffstat (limited to 'docs')
-rw-r--r--docs/_templates/layout.html2
-rw-r--r--docs/conf.py4
2 files changed, 1 insertions, 5 deletions
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html
index 00686bd7..0ef7d54f 100644
--- a/docs/_templates/layout.html
+++ b/docs/_templates/layout.html
@@ -27,7 +27,7 @@
</div>
{% endif %}
- {%- if ON_READTHEDOCS %}
+ {%- if READTHEDOCS %}
<script>
if (typeof READTHEDOCS_DATA !== 'undefined') {
if (!READTHEDOCS_DATA.features) {
diff --git a/docs/conf.py b/docs/conf.py
index 92f11c22..563febc2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -143,10 +143,6 @@ html_experimental_html5_writer = True
# a list of builtin themes.
html_theme = 'basic'
-html_context = {
- 'ON_READTHEDOCS': bool(os.environ.get('READTHEDOCS'))
-}
-
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.