Skip to content

Commit

Permalink
still trying to fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
lzehl committed Jul 16, 2023
1 parent f650b3e commit 20a521d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipeline/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def _build_species_links(self, species:Dict) -> str:

def _build_product_version_links(self, versions:Dict, productType:str) -> str:
linklist = []
for name, data in versions.items():
for name, data in sorted(versions.items()):
vID = data['versionIdentifier']
space_html_title = f"{data['shortName'].replace(' ', '%')}.html#version-{vID.replace(' ', '-')}"
space_html_title = f"{data['shortName']}.html#version-{vID.replace(' ', '-')}"
link = os.path.join(self.readthedocs_url, self.version, "libraries", productType, space_html_title)
linklist.append(f"`{vID} <{link}>`_")
return ", ".join(linklist)
Expand Down

0 comments on commit 20a521d

Please sign in to comment.