Skip to content

Commit

Permalink
Added version widget to nav bar
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 22, 2024
1 parent e9d4f1f commit f946ada
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/source/_static/switcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"name": "v0.3.1 (stable)",
"version": "0.3.1",
"url": "https://neuroblueprint.neuroinformatics.dev/"
}
]
5 changes: 5 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,16 @@
"type": "fontawesome",
},
],
"switcher": {
"json_url": "https://neuroblueprint.neuroinformatics.dev/_static/switcher.json",
"version_match": release,
},
"logo": {
"text": f"NeuroBlueprint v{release}",
"image_light": "logo_light.png",
"image_dark": "logo_dark.png",
},
"navbar_end": ["navbar-icon-links", "version-switcher"],
"footer_start": ["custom_footer"],
"footer_end": ["footer_end"]
}
Expand Down

0 comments on commit f946ada

Please sign in to comment.