Skip to content

Commit

Permalink
still struggling with version links
Browse files Browse the repository at this point in the history
  • Loading branch information
lzehl committed Jul 16, 2023
1 parent 9128132 commit 8355d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _build_product_version_links(self, versions:Dict, productType:str) -> str:
for name, vdict in sorted(versions.items()):
vdata = vdict["atlas"] if productType == "brainAtlases" else vdict
vID = vdata['versionIdentifier']
vID_mod = vID.replace(' ', '-').replace(',', '-')
vID_mod = vID.replace(' ', '-').replace(',', '-').casefold()
space_html_title = f"{vdata['shortName'].replace(' ', '%20')}.html#version-{vID_mod}"
link = os.path.join(self.readthedocs_url, self.version, "libraries", productType, space_html_title)
linklist.append(f"`{vID} <{link}>`_")
Expand Down

0 comments on commit 8355d1b

Please sign in to comment.