From 49fe65acd8beecce42f1991b535f34826c7dc58f Mon Sep 17 00:00:00 2001 From: HenrZu <69154294+HenrZu@users.noreply.github.com> Date: Wed, 9 Jul 2025 15:16:57 +0200 Subject: [PATCH 1/2] mock some dependencies --- docs/source/conf.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 8c52582840..bdf62104cc 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -97,7 +97,25 @@ "style_nav_header_background": "#f8f9fb", } - +# Mock heavy dependencies to speed up build +autodoc_mock_imports = [ + "numpy", + "scipy", + "pandas", + "matplotlib", + "tensorflow", + "scikit-learn", + "h5py", + "tables", + "geopandas", + "pyarrow", + "PyQt6", + "wget", + "twill", + "folium", + "mapclassify", + "imageio", +] # -- Options for EPUB output epub_show_urls = 'footnote' From 80cd2c707b6883f0df2e2033206979980ef285ca Mon Sep 17 00:00:00 2001 From: HenrZu <69154294+HenrZu@users.noreply.github.com> Date: Wed, 9 Jul 2025 16:14:39 +0200 Subject: [PATCH 2/2] set collapse_navigation true --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index bdf62104cc..b41a9fcbf3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -92,7 +92,7 @@ html_theme = 'sphinx_rtd_theme' html_logo = "../memilio-small.png" html_theme_options = { - "collapse_navigation": False, + "collapse_navigation": True, "logo_only": True, "style_nav_header_background": "#f8f9fb", }