Skip to content

Commit

Permalink
docs: fix ReadTheDocs styles
Browse files Browse the repository at this point in the history
* use html_css_files instead of html_context in .doc/conf.py
* constrain sphinx & sphinx_rtd_theme versions in .doc/requirements.txt
  • Loading branch information
wpbonelli authored Aug 19, 2023
1 parent 497a8f4 commit 78411ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down
3 changes: 2 additions & 1 deletion .doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ sphinx_markdown_tables
ipython
ipykernel
rtds_action
sphinx_rtd_theme
sphinx>=4
sphinx_rtd_theme>=1
myst-parser

0 comments on commit 78411ba

Please sign in to comment.