Skip to content

Commit

Permalink
DOC: add extra_classes in one example
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed Jan 25, 2022
1 parent d7616a9 commit c50de2d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/user_guide/configuring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ each have one or two fields:
switcher.
- ``name``: an optional name to display in the switcher dropdown instead of the
version string (e.g., "latest", "stable", "dev", etc).
- ``extra_classes``: an optional list of classes to add to a version
(e.g., ``["dev", "hide"]``). These classes are only added when the version
is active.
- ``extra_classes``: an optional list of classes to add to the switcher
button for a given version (e.g., ``["dev", "rc"]``). These classes are only
added when the version is active.

Here is an example JSON file:

Expand All @@ -399,6 +399,10 @@ Here is an example JSON file:
"name": "v2.1 (stable)",
"version": "2.1"
},
{
"version": "2.1rc1",
"extra_classes": ["dev", "rc"]
},
{
"version": "2.0"
},
Expand Down

0 comments on commit c50de2d

Please sign in to comment.