From 78411ba322b3e322a28fe130d2315114179094d4 Mon Sep 17 00:00:00 2001 From: w-bonelli Date: Sat, 19 Aug 2023 17:01:36 -0400 Subject: [PATCH] docs: fix ReadTheDocs styles * use html_css_files instead of html_context in .doc/conf.py * constrain sphinx & sphinx_rtd_theme versions in .doc/requirements.txt --- .doc/conf.py | 7 +++---- .doc/requirements.txt | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.doc/conf.py b/.doc/conf.py index 599c330ac4d..8ed07df6dda 100644 --- a/.doc/conf.py +++ b/.doc/conf.py @@ -112,14 +112,13 @@ # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] - html_context = { "github_repo": "modflow6", "doc_path": ".doc", - "css_files": [ - "_static/theme_overrides.css", # override wide tables in RTD theme - ], } +html_css_files = [ + "_static/theme_overrides.css", # override wide tables in RTD theme +] html_theme_options = {} diff --git a/.doc/requirements.txt b/.doc/requirements.txt index 2174ec428a1..7c642ad9cda 100644 --- a/.doc/requirements.txt +++ b/.doc/requirements.txt @@ -2,5 +2,6 @@ sphinx_markdown_tables ipython ipykernel rtds_action -sphinx_rtd_theme +sphinx>=4 +sphinx_rtd_theme>=1 myst-parser