Skip to content

Commit

Permalink
add # to internal link
Browse files Browse the repository at this point in the history
  • Loading branch information
branfosj authored Jan 4, 2023
1 parent b220b24 commit 9f9810f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion easybuild/tools/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/framework/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9f9810f

Please sign in to comment.