Skip to content

Commit

Permalink
Add doc switcher version
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed Apr 24, 2024
1 parent d15e325 commit 095aa80
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/_static/switcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"version": "dev",
"url": "https://saezlab.github.io/corneto/dev"
},
{
"name": "latest",
"version": "v1.0.0",
"url": "https://saezlab.github.io/corneto",
"preferred": true
}
]
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@
]
html_show_sphinx = False

html_theme_options = {"primary_sidebar_end": ["sidebar-ethical-ads"]}
html_theme_options = {
"primary_sidebar_end": ["sidebar-ethical-ads"],
"switcher": {
"json_url": "_static/switcher.json",
"version_match": "dev",
},
}

intersphinx_mapping = {
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
Expand Down

0 comments on commit 095aa80

Please sign in to comment.