From 20a521dd138748212d6e7298b4d26ccd47352883 Mon Sep 17 00:00:00 2001 From: lzehl Date: Sun, 16 Jul 2023 14:26:08 +0200 Subject: [PATCH] still trying to fix links --- pipeline/instance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline/instance.py b/pipeline/instance.py index b729942f..42ac5909 100644 --- a/pipeline/instance.py +++ b/pipeline/instance.py @@ -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)