We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2dbb00 commit 0edd842Copy full SHA for 0edd842
readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl
@@ -15,6 +15,7 @@
15
16
17
import sys
18
+import os.path
19
from six import string_types
20
21
from sphinx import version_info
@@ -57,10 +58,11 @@ else:
57
58
'.templates']
59
60
# Add RTD Static Path. Add to the end because it overwrites previous files.
-if 'html_static_path' in globals():
61
- html_static_path.append('{{ static_path }}')
62
-else:
63
- html_static_path = ['{{ static_path }}']
+if not 'html_static_path' in globals():
+ html_static_path = []
+if os.path.exists('_static'):
64
+ html_static_path.append('_static')
65
+html_static_path.append('{{ static_path }}')
66
67
# Add RTD Theme only if they aren't overriding it already
68
using_rtd_theme = False
0 commit comments