Skip to content

Commit

Permalink
Commented out again because I'm a tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrogon committed Apr 12, 2024
1 parent 8c22e8d commit eca037d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)])
Expand All @@ -71,3 +73,4 @@
for version, details in docs.items():
html_context['versions'].append([version, "{}/{}/{}".format(pages_root, version, current_language)])
"""

0 comments on commit eca037d

Please sign in to comment.