Skip to content

Commit 3a0d789

Browse files
HenrZukilianvolmer
andauthored
1312 Accelerate documentation build (#1313)
- Mocking dependencies for sphinx build - set collapse_navigation to true leads to ~50% faster build Co-authored-by: Kilian Volmer <13285635+kilianvolmer@users.noreply.github.com>
1 parent 27c9ce8 commit 3a0d789

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

docs/source/conf.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,30 @@
9292
html_theme = 'sphinx_rtd_theme'
9393
html_logo = "../memilio-small.png"
9494
html_theme_options = {
95-
"collapse_navigation": False,
95+
"collapse_navigation": True,
9696
"logo_only": True,
9797
"style_nav_header_background": "#f8f9fb",
9898
}
9999

100-
100+
# Mock heavy dependencies to speed up build
101+
autodoc_mock_imports = [
102+
"numpy",
103+
"scipy",
104+
"pandas",
105+
"matplotlib",
106+
"tensorflow",
107+
"scikit-learn",
108+
"h5py",
109+
"tables",
110+
"geopandas",
111+
"pyarrow",
112+
"PyQt6",
113+
"wget",
114+
"twill",
115+
"folium",
116+
"mapclassify",
117+
"imageio",
118+
]
101119

102120
# -- Options for EPUB output
103121
epub_show_urls = 'footnote'

0 commit comments

Comments
 (0)