From 9f9810f8d31023f12d6aabfefa251aad639b98a8 Mon Sep 17 00:00:00 2001 From: Simon Branford <4967+branfosj@users.noreply.github.com> Date: Wed, 4 Jan 2023 14:29:48 +0000 Subject: [PATCH] add # to internal link --- easybuild/tools/docs.py | 2 +- test/framework/docs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/tools/docs.py b/easybuild/tools/docs.py index ede404a4ba..52b2d3559b 100644 --- a/easybuild/tools/docs.py +++ b/easybuild/tools/docs.py @@ -1259,7 +1259,7 @@ def gen_easyblocks_overview_md(package_name, path_to_examples, common_params=Non eb_links = [] for eb_class in sorted(eb_classes, key=lambda c: c.__name__): eb_name = eb_class.__name__ - eb_links.append("[" + eb_name + "](" + eb_name.lower() + ")") + eb_links.append("[" + eb_name + "](#" + eb_name.lower() + ")") heading = [ "# Overview of generic easyblocks", diff --git a/test/framework/docs.py b/test/framework/docs.py index 3937acdd86..41d6eafda1 100644 --- a/test/framework/docs.py +++ b/test/framework/docs.py @@ -522,7 +522,7 @@ def test_gen_easyblocks_overview(self): self.assertTrue(name in ebdoc) names.append(name) - toc = ["\\[" + n + "\\]\\(" + n.lower() + "\\)" for n in sorted(set(names))] + toc = ["\\[" + n + "\\]\\(#" + n.lower() + "\\)" for n in sorted(set(names))] pattern = " - ".join(toc) regex = re.compile(pattern) self.assertTrue(re.search(regex, ebdoc), "Pattern %s found in %s" % (regex.pattern, ebdoc))