Skip to content

Commit cf4a8ad

Browse files
authored
Update sphinx to 4.5.0 (pvlib#1435)
* bump sphinx and pydata-sphinx-theme versions * clean up sphinx conf.py * fix distutils strangeness, maybe * use freshly-released sphinx==4.5.0
1 parent 884a153 commit cf4a8ad

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/sphinx/source/conf.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
# for generating GH links with linenumbers
2121
import inspect
2222

23+
# import distutils before calling pd.show_versions()
24+
# https://github.com/pypa/setuptools/issues/3044
25+
import distutils # noqa: F401
2326
import pandas as pd
2427
pd.show_versions()
2528

@@ -244,7 +247,7 @@ def setup(app):
244247
# In-line links to references as numbers in brackets.
245248
app.add_css_file("reference_format.css")
246249
# Add a warning banner at the top of the page if viewing the "latest" docs
247-
app.add_javascript("version-alert.js")
250+
app.add_js_file("version-alert.js")
248251

249252
# -- Options for LaTeX output ---------------------------------------------
250253

@@ -343,8 +346,6 @@ def setup(app):
343346
'matplotlib': ('https://matplotlib.org/stable', None),
344347
}
345348

346-
nbsphinx_allow_errors = True
347-
348349
ipython_warning_is_error = False
349350

350351
# suppress "WARNING: Footnote [1] is not referenced." messages

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
'optional': ['cython', 'ephem', 'netcdf4', 'nrel-pysam', 'numba',
5454
'pvfactors', 'siphon', 'statsmodels',
5555
'cftime >= 1.1.1'],
56-
'doc': ['ipython', 'matplotlib', 'sphinx == 3.1.2',
57-
'pydata-sphinx-theme == 0.8.0', 'sphinx-gallery',
56+
'doc': ['ipython', 'matplotlib', 'sphinx == 4.5.0',
57+
'pydata-sphinx-theme == 0.8.1', 'sphinx-gallery',
5858
'docutils == 0.15.2', 'pillow', 'netcdf4', 'siphon',
5959
'sphinx-toggleprompt >= 0.0.5', 'pvfactors'],
6060
'test': TESTS_REQUIRE

0 commit comments

Comments
 (0)