docs: added version switcher

This commit is contained in:
wakonig_k 2022-12-23 15:54:39 +01:00
parent e6beda3b9c
commit eaaff100a1
3 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
[
{
"name": "production",
"version": "0.1",
"url": "https://beamline-experiment-control.readthedocs.io/en/production/index.html",
},
{
"name": "master",
"version": "0.1",
"url": "https://beamline-experiment-control.readthedocs.io/en/latest/index.html",
},
]

View File

@ -46,3 +46,9 @@ language = "Python"
# html_theme = 'alabaster'
html_theme = "pydata_sphinx_theme"
html_static_path = ["_static"]
html_theme_options = {
"switcher": {
"json_url": "https://beamline-experiment-control.readthedocs.io/en/latest/_static/switcher.json",
},
"navbar_start": ["navbar-logo", "version-switcher"],
}

View File

@ -3,7 +3,7 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to BEC's documentation!
Beamline Experiment Control
===============================