Skip to content

Commit

Permalink
doc: use less fragile module filename parse
Browse files Browse the repository at this point in the history
  • Loading branch information
foxxyz committed Jul 21, 2021
1 parent df5ad92 commit 125c287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/allhtml.mjs
Expand Up @@ -55,7 +55,7 @@ for (const link of toc.match(/<a.*?>/g)) {
// Prefix all links to other docs modules with those module names
.replace(/<a href="(\w[^#"]*)#/g, (match, href) => {
if (!htmlFiles.includes(href)) return match;
const linkModule = href.split('.')[0];
const linkModule = href.replace(/\.html$/, '');
return `<a href="#${linkModule}_`;
})
.trim() + '\n';
Expand Down

0 comments on commit 125c287

Please sign in to comment.