We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ec6aa2 commit 2dab64cCopy full SHA for 2dab64c
docs/doc_sources/conf.py.in
@@ -143,9 +143,12 @@ if generate_multiversion == "ON":
143
# POPULATE LINKS TO OTHER VERSIONS
144
html_context["versions"] = list()
145
146
- # Populate the list of documented versions from the doc_versions.tx
+ # Populate the list of documented versions from the doc_versions.txt
147
versions = []
148
- with open("doc_versions.txt", "r") as doc_versions:
+
149
+ conf_dir = os.path.dirname(os.path.abspath(__file__))
150
+ versions_file = os.path.join(conf_dir, "..", "doc_versions.txt")
151
+ with open(versions_file, "r") as doc_versions:
152
while True:
153
version = doc_versions.readline().strip()
154
if not version:
0 commit comments