diff --git a/_config.yml b/_config.yml index af57588..60ef703 100755 --- a/_config.yml +++ b/_config.yml @@ -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' diff --git a/switcher.json b/switcher.json new file mode 100644 index 0000000..4e343d5 --- /dev/null +++ b/switcher.json @@ -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/" + } +]