diff --git a/docs/conf.py b/docs/conf.py index 591317e27..d924885e0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -88,6 +88,7 @@ mermaid_init_js = ( html_domain_indices = False html_use_index = False +html_extra_path = ["project.json", "versions1.json"] highlight_language = "console" html_theme_options = { @@ -105,8 +106,14 @@ html_theme_options = { "type": "fontawesome", }, ], + "switcher": { + "json_url": "../versions1.json", + "version_match": release, + }, } +html_baseurl = "https://docs.nvidia.com/openshell/latest/" + json_output_settings = { "enabled": True, "verbose": True, diff --git a/docs/project.json b/docs/project.json new file mode 100644 index 000000000..d1e99685c --- /dev/null +++ b/docs/project.json @@ -0,0 +1 @@ +{ "name": "openshell", "version": "0.1.0" } diff --git a/docs/versions1.json b/docs/versions1.json new file mode 100644 index 000000000..4ddc1354d --- /dev/null +++ b/docs/versions1.json @@ -0,0 +1,7 @@ +[ + { + "preferred": true, + "version": "0.1.0", + "url": "../0.1.0/" + } +]