From 56876535083beee34e0bf869f2da8f02be0e63f0 Mon Sep 17 00:00:00 2001 From: Kevin Putnam Date: Wed, 10 Jul 2019 14:10:27 -0700 Subject: [PATCH] Fixed problem with version and language paths. Signed-off-by: Kevin Putnam --- .../_themes/otc_tcs_sphinx_theme/cversions.html | 4 ++-- source/conf.py | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/_themes/otc_tcs_sphinx_theme/cversions.html b/source/_themes/otc_tcs_sphinx_theme/cversions.html index 01889d23..0c3def19 100644 --- a/source/_themes/otc_tcs_sphinx_theme/cversions.html +++ b/source/_themes/otc_tcs_sphinx_theme/cversions.html @@ -9,13 +9,13 @@
{{ _('Language Versions') }}
{% for slug, url in languages %} -
{{ slug }}
+
{{ slug }}
{% endfor %}
{{ _('Document Versions') }}
{% for slug, url in versions %} -
{{ slug }}
+
{{ slug }}
{% endfor %}
diff --git a/source/conf.py b/source/conf.py index 9eecc2f6..71dcd5be 100644 --- a/source/conf.py +++ b/source/conf.py @@ -140,16 +140,16 @@ html_context = { "conf_py_path": "/source/", # Path in the checkout to the docs root "current_version": current_version, "languages": ( ("English", ""), - ("Mandarin", "md"), - ("Spanish", "esp") + ("Mandarin", "/md"), + ("Spanish", "/esp") ), "versions": ( ("latest", ""), - ("LTS 1", "lts1"), - ("LTS 2", "lts2"), - ("LTS 3", "lts3"), - ("LTS 4", "lts4"), - ("LTS 5", "lts5"), - ("LTS 6", "lts6") + ("LTS 1", "/lts/v1"), + ("LTS 2", "/lts/v2"), + ("LTS 3", "/lts/v3"), + ("LTS 4", "/lts/v4"), + ("LTS 5", "/lts/v5"), + ("LTS 6", "/lts/v6") ) }