Skip to content

Commit 41ae069

Browse files
authored
Merge pull request #3122 from samsrabin/docs-hotfix
Fix a couple of things in documentation conf.py
2 parents 3df302f + 9123bca commit 41ae069

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/source/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
version_label = 'the latest development code'
6868

6969
# List of versions to populate version picker dropdown menu
70-
version_list = ["latest", "release-clm5.0"]
70+
version_list = ["master", "release-clm5.0"]
7171

7272
# version_label is not a standard sphinx variable, so we need some custom rst to allow
7373
# pages to use it. We need a separate replacement for the bolded version because it
@@ -197,4 +197,5 @@ def setup(app):
197197

198198
html_context["versions"] = []
199199
for this_version in version_list:
200-
html_context["versions"].append([this_version, f"../../../versions/{this_version}/html"])
200+
# Note: with 4 pardir operators, link in version selector will be broken locally but work on the Web 🤷
201+
html_context["versions"].append([this_version, f"../../../../versions/{this_version}/html"])

0 commit comments

Comments
 (0)