Skip to content

Commit babe008

Browse files
committed
Fixes ugly layout in generated doc
1 parent 980528e commit babe008

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

docs/source/conf.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@
99
if on_rtd:
1010
subprocess.call('cd ..; doxygen', shell=True)
1111

12-
import sphinx_rtd_theme
13-
14-
html_theme = "sphinx_rtd_theme"
15-
16-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
12+
html_context = {
13+
"css_files": [
14+
"//media.readthedocs.org/css/sphinx_rtd_theme.css",
15+
"//media.readthedocs.org/css/readthedocs-doc-embed.css",
16+
]
17+
}
18+
else:
19+
20+
import sphinx_rtd_theme
21+
22+
html_theme = "sphinx_rtd_theme"
23+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
1724

1825
extensions = ['breathe']
1926
breathe_projects = { 'xsimd': '../xml' }

0 commit comments

Comments
 (0)