Use the standard way of detecting RTD

This commit is contained in:
Rapptz 2019-07-01 00:37:35 -04:00
parent ac00fcad77
commit 4c917d10de
2 changed files with 1 additions and 5 deletions

View File

@ -27,7 +27,7 @@
</div>
{% endif %}
{%- if ON_READTHEDOCS %}
{%- if READTHEDOCS %}
<script>
if (typeof READTHEDOCS_DATA !== 'undefined') {
if (!READTHEDOCS_DATA.features) {

View File

@ -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.