summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Barnowski <rossbar@berkeley.edu>2021-06-21 22:22:53 +0300
committerRoss Barnowski <rossbar@berkeley.edu>2021-06-21 22:22:53 +0300
commit8118218ecc43d763e23c08a1a8809a1455d41710 (patch)
tree467fdd41f4b80307ec5e66ccd8a1efcd24769b09
parent7d8fadac32f102f25642b47e82437f4243ca2658 (diff)
downloadnumpy-8118218ecc43d763e23c08a1a8809a1455d41710.tar.gz
Unpin pydata sphinx theme and update config.
As of v0.6, the pydata-sphinx-theme has a collapsible navigation feature for the sidebar that significantly increases the build time and html file size for the docs. We had originally pinned to 0.5.2 to avoid this, but the feature is now configurable with the collapse_navigation=True value. Remove the upper-bound pinning the theme and instead use the configuration option to keep doc build times reasonable.
-rw-r--r--doc/source/conf.py1
-rw-r--r--doc_requirements.txt2
-rw-r--r--environment.yml2
3 files changed, 3 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index a49074922..edf937e3c 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -164,6 +164,7 @@ html_theme_options = {
"logo_link": "index",
"github_url": "https://github.com/numpy/numpy",
"twitter_url": "https://twitter.com/numpy_team",
+ "collapse_navigation": True,
}
diff --git a/doc_requirements.txt b/doc_requirements.txt
index 340366854..0ca72781a 100644
--- a/doc_requirements.txt
+++ b/doc_requirements.txt
@@ -4,4 +4,4 @@ ipython
scipy
matplotlib
pandas
-pydata-sphinx-theme==0.5.2
+pydata-sphinx-theme
diff --git a/environment.yml b/environment.yml
index 22ce617af..607aeb231 100644
--- a/environment.yml
+++ b/environment.yml
@@ -27,7 +27,7 @@ dependencies:
- scipy
- pandas
- matplotlib
- - pydata-sphinx-theme=0.5.2
+ - pydata-sphinx-theme
# For linting
- pycodestyle=2.7.0
- gitpython