Skip to content

Commit

Permalink
Follow RTD's deprecation of Sphinx context injection at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed Aug 19, 2024
1 parent 90cce84 commit ad8e7b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
import os
import andes
import shutil

Expand Down Expand Up @@ -131,6 +132,10 @@
"doc_path": "docs/source",
}

# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down
1 change: 1 addition & 0 deletions docs/source/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ v1.9 Notes

v1.9.3 (2024-04-XX)
-------------------
- Follow RTD's deprecation of Sphinx context injection at build time
- In symbolic processor, most variables are assumed to be real, except some
services that are specified as complex. This will allow generating simplified
expressions.
Expand Down

0 comments on commit ad8e7b4

Please sign in to comment.