Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit 4c917d1

Browse files
committed
Use the standard way of detecting RTD
1 parent ac00fca commit 4c917d1

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

docs/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</div>
2828
{% endif %}
2929

30-
{%- if ON_READTHEDOCS %}
30+
{%- if READTHEDOCS %}
3131
<script>
3232
if (typeof READTHEDOCS_DATA !== 'undefined') {
3333
if (!READTHEDOCS_DATA.features) {

docs/conf.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@
143143
# a list of builtin themes.
144144
html_theme = 'basic'
145145

146-
html_context = {
147-
'ON_READTHEDOCS': bool(os.environ.get('READTHEDOCS'))
148-
}
149-
150146
# Theme options are theme-specific and customize the look and feel of a theme
151147
# further. For a list of options available for each theme, see the
152148
# documentation.

0 commit comments

Comments
 (0)