Skip to content

Commit

Permalink
Add sphinx-version-warning extension (#502)
Browse files Browse the repository at this point in the history
# Description

We need a warning banner for when a user is not on the latest stable
version of our documentation. `sphinx-version-warning` is a Sphinx
extension that compares the current version to the latest one and then
displays this banner at the top of the documentation page if it is an
older version.

## Type of change

- [x] New feature (non-breaking change which adds functionality)
- [x] Documentation update (Doc only change)

Signed-off-by: Sharon Koech <[email protected]>
  • Loading branch information
skoech authored Feb 7, 2025
1 parent b465949 commit 9ecc402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/.sphinx/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sphinx-reredirects
sphinx-tabs
sphinxcontrib-jquery
sphinxext-opengraph
sphinx-version-warning
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
'sphinxext.opengraph',
'myst_parser',
'sphinxcontrib.jquery',
'notfound.extension'
'notfound.extension',
'versionwarning.extension'
]
extensions.extend(custom_extensions)

Expand Down

0 comments on commit 9ecc402

Please sign in to comment.