Skip to content

Commit d9c3419

Browse files
authored
Additional version banner details. (#1973)
Adds a more detailed descriptions on what causes different messages to appear in the version announcement. This tripped me up for a little bit and I had to go searching in the source code to find out what exactly triggered the development warning banner to display. So this PR is in the hope of avoiding a small headache for others!
1 parent 721d197 commit d9c3419

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/user_guide/announcements.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ In addition to the general-purpose announcement banner, the theme includes a bui
8989
"preferred": true
9090
}
9191
92+
If the active version compares less than the preferred version, the announcement will inform the user that
93+
they are viewing an older version of the documentation and provide a link to the preferred version. If the
94+
version compares greater than the preferred version (or if the version match contains the strings `"dev"`,
95+
`"rc"` or `"pre"`), the announcement will say they are viewing an unstable development version instead.
96+
9297
If you want similar functionality for *older* versions of your docs (i.e. those built before the ``show_version_warning_banner`` configuration option was available), you can manually add a banner by prepending the following HTML to all pages (be sure to replace ``URL_OF_STABLE_VERSION_OF_PROJECT`` with a valid URL, and adjust styling as desired):
9398

9499
.. code-block:: html

0 commit comments

Comments
 (0)