Browse Source

Proper RTD detection.

pull/2255/head
Rapptz 6 years ago
parent
commit
c26797d808
  1. 2
      docs/_templates/layout.html
  2. 4
      docs/conf.py

2
docs/_templates/layout.html

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

4
docs/conf.py

@ -142,6 +142,10 @@ html_experimental_html5_writer = True
# a list of builtin themes. # a list of builtin themes.
html_theme = 'basic' 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 # 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 # further. For a list of options available for each theme, see the
# documentation. # documentation.

Loading…
Cancel
Save