From eca037d979e3cef2c9ff909e8cceffbf56f0aadd Mon Sep 17 00:00:00 2001 From: ChrissyBoyo <45185673+Cyrogon@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:41:10 +0100 Subject: [PATCH] Commented out again because I'm a tool --- docs/source/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 2e1ef70..ff36b66 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -58,11 +58,13 @@ html_context['versions'].append(['latest', "{}/{}".format(pages_root, current_language)]) -# Open the versions.yaml to see what versions to build and what langs they supported +# Open the versions.yaml to see what versions to build and what langs they supported, commented out as currently unused +""" with open("../versions.yaml", "r") as yaml_file: docs = yaml.safe_load(yaml_file) # if the current version isn't latest, append the version to the redirect string of the page, so that it links to the correct locale + if (current_version != 'latest'): for language in docs[current_version].get('languages', []): html_context['languages'].append([language, "{}/{}/{}".format(pages_root, current_version, language)]) @@ -71,3 +73,4 @@ for version, details in docs.items(): html_context['versions'].append([version, "{}/{}/{}".format(pages_root, version, current_language)]) +""" \ No newline at end of file