Altern conditional check on builder name

This commit is contained in:
Anthony Johnson 2017-03-06 15:12:42 -08:00
parent aa8477b7a7
commit 9d636a8850
No known key found for this signature in database
GPG Key ID: C5C79D82F922D604

View File

@ -129,7 +129,7 @@
The singlehtml builder doesn't handle this toctree call when the
toctree is empty. Skip building this for now.
#}
{% if builder not in ['singlehtml', 'readthedocssinglehtml', 'readthedocssinglehtmllocalmedia'] %}
{% if 'singlehtml' not in builder %}
{% set global_toc = toctree(maxdepth=theme_navigation_depth|int, collapse=theme_collapse_navigation, includehidden=True) %}
{% endif %}
{% if global_toc %}