Skip to content

Commit

Permalink
Update sphinx to 4.5.0 (pvlib#1435)
Browse files Browse the repository at this point in the history
* bump sphinx and pydata-sphinx-theme versions

* clean up sphinx conf.py

* fix distutils strangeness, maybe

* use freshly-released sphinx==4.5.0
  • Loading branch information
kandersolar authored Mar 29, 2022
1 parent 884a153 commit cf4a8ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
# for generating GH links with linenumbers
import inspect

# import distutils before calling pd.show_versions()
# https://github.com/pypa/setuptools/issues/3044
import distutils # noqa: F401
import pandas as pd
pd.show_versions()

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

# -- Options for LaTeX output ---------------------------------------------

Expand Down Expand Up @@ -343,8 +346,6 @@ def setup(app):
'matplotlib': ('https://matplotlib.org/stable', None),
}

nbsphinx_allow_errors = True

ipython_warning_is_error = False

# suppress "WARNING: Footnote [1] is not referenced." messages
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
'optional': ['cython', 'ephem', 'netcdf4', 'nrel-pysam', 'numba',
'pvfactors', 'siphon', 'statsmodels',
'cftime >= 1.1.1'],
'doc': ['ipython', 'matplotlib', 'sphinx == 3.1.2',
'pydata-sphinx-theme == 0.8.0', 'sphinx-gallery',
'doc': ['ipython', 'matplotlib', 'sphinx == 4.5.0',
'pydata-sphinx-theme == 0.8.1', 'sphinx-gallery',
'docutils == 0.15.2', 'pillow', 'netcdf4', 'siphon',
'sphinx-toggleprompt >= 0.0.5', 'pvfactors'],
'test': TESTS_REQUIRE
Expand Down

0 comments on commit cf4a8ad

Please sign in to comment.