From 79c2677624139164f6d4c2ee044db37f39e1c542 Mon Sep 17 00:00:00 2001 From: tinyboxvk Date: Thu, 24 Oct 2024 16:25:53 +0000 Subject: [PATCH 1/4] Update conf.py --- docs/conf.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 1bf8458..8748042 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -108,11 +108,7 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # to fix long table-wdith problem -html_context = { - 'css_files': [ - '_static/theme_overrides.css', # override wide tables in RTD theme - ], - } +html_css_files = ['css/theme-overrides.css'] # override wide tables in RTD theme # Custom sidebar templates, must be a dictionary that maps document names # to template names. @@ -194,4 +190,4 @@ # -- Options for todo extension ---------------------------------------------- # If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True \ No newline at end of file +todo_include_todos = True From c08269dc5ce2af75dc8d3c26bd5e287381d7e81c Mon Sep 17 00:00:00 2001 From: tinyboxvk Date: Thu, 24 Oct 2024 16:27:48 +0000 Subject: [PATCH 2/4] Fix support for newer sphinx_rtd_theme versions up to 2.0 This fixes https://github.com/EarthObservationSimulator/instrupy/issues/4 https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_css_files --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ee416be..e4526a3 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ conda install pip * `pandas` * `scipy` * `sphinx` - * `sphinx_rtd_theme==0.5.2` + * `sphinx_rtd_theme==2.0.0` * `metpy` * `netCDF4` * `astropy` From 9c3d995a40a728c4a283f26e26a00baef9c18083 Mon Sep 17 00:00:00 2001 From: tinyboxvk Date: Thu, 24 Oct 2024 16:32:39 +0000 Subject: [PATCH 3/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b2340d6..3e88bc2 100644 --- a/setup.py +++ b/setup.py @@ -13,5 +13,5 @@ def readme(): packages=['instrupy'], scripts=[ ], - install_requires=['shapely', 'numpy', 'pandas', 'scipy', 'lowtran==2.4.1', 'sphinx', 'sphinx_rtd_theme==0.5.2', 'netCDF4','metpy','astropy','deepdiff'] + install_requires=['shapely', 'numpy', 'pandas', 'scipy', 'lowtran==2.4.1', 'sphinx', 'sphinx_rtd_theme==2.0.0', 'netCDF4','metpy','astropy','deepdiff'] ) From 082164686dfd828d07ca36463a0b5807674480b7 Mon Sep 17 00:00:00 2001 From: tinyboxvk Date: Thu, 24 Oct 2024 16:40:40 +0000 Subject: [PATCH 4/4] Update conf.py --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 8748042..e73d6e1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -108,7 +108,7 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # to fix long table-wdith problem -html_css_files = ['css/theme-overrides.css'] # override wide tables in RTD theme +html_css_files = ['theme-overrides.css'] # override wide tables in RTD theme # Custom sidebar templates, must be a dictionary that maps document names # to template names.