From 5db729e3e1ad83cff83777ddc201a9ae7e38e9ed Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 19 Jun 2020 07:49:56 -0400 Subject: [PATCH 1/2] Use intersphinx file from numpy.org Raises a notice when building documentation that the file has been moved. Docs still build correctly, but don't know how long the inventory file will exist under the scipy domain --- 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 222b95c9f5..00fab6a7ab 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -254,7 +254,7 @@ napoleon_use_ivar = True intersphinx_mapping = { 'python': ('https://docs.python.org/3', None), - 'numpy': ('https://docs.scipy.org/doc/numpy/', None), + 'numpy': ('https://numpy.org/doc/stable/', None), 'scipy': ('https://docs.scipy.org/doc/scipy/reference', None), 'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None), 'matplotlib': ('https://matplotlib.org/', None) From 8fdf6cc6a7d28613c43c83e82d0c15ce170d4a28 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 19 Jun 2020 07:56:08 -0400 Subject: [PATCH 2/2] Use app.add_css_file when building docs app.add_stylesheet was deprecated in Sphinx 1.8 and will be removed in 4.0 https://www.sphinx-doc.org/en/master/extdev/deprecated.html The replacement app.add_css_file https://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_css_file was renamed from add_stylesheet in 1.8 --- 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 00fab6a7ab..83570574dd 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -155,7 +155,7 @@ html_title = "OpenMC Documentation" html_static_path = ['_static'] def setup(app): - app.add_stylesheet('theme_overrides.css') + app.add_css_file('theme_overrides.css') # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format.