Skip to content

Commit

Permalink
Merge pull request #376 from mwcraig/add-switcher
Browse files Browse the repository at this point in the history
Add a version switcher
  • Loading branch information
mwcraig authored Jul 14, 2024
2 parents 7cb872b + d64bc2a commit fac38c7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,15 @@ sphinx:
extra_extensions : # A list of extra extensions to load by Sphinx.
local_extensions : # A list of local extensions to load by sphinx specified by "name: path" items
recursive_update : true # A boolean indicating whether to overwrite the Sphinx config (true) or recursively update (false)
config:
html_sidebars:
# Added version-switcher and the default primary sidebar
"**": ["navbar-logo.html",
"icon-links.html",
"search-button-field.html",
"version-switcher.html",
"sbt-sidebar-nav.html"]
html_theme_options:
switcher:
json_url: "https://gist.githubusercontent.com/mwcraig/8c8bf204fdff0a972c170f377d154cc7/raw/df52df0b14549341eb721eab7f479380b3c246d1/switcher.json"
version_match: 'dev'
14 changes: 14 additions & 0 deletions switcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"version": "2.0.1",
"url": "https://www.astropy.org/ccd-reduction-and-photometry-guide/v/2.0.1/"
},
{
"version": "2.0.0",
"url": "https://www.astropy.org/ccd-reduction-and-photometry-guide/v/2.0.0/"
},
{
"name": "dev",
"url": "https://www.astropy.org/ccd-reduction-and-photometry-guide/v/dev/"
}
]

0 comments on commit fac38c7

Please sign in to comment.