typedoc-gitlab-wiki-theme
Advanced tools
Comparing version
@@ -56,4 +56,4 @@ "use strict"; | ||
app.renderer.on(typedoc_plugin_markdown_1.MarkdownPageEvent.END, (page) => { | ||
page.contents = page.contents?.replace(/\[([^\]]+)\]\((?!https?:|\/|\.)([^)]+)\)/g, (match, text, url) => { | ||
let relativeUrl = url?.replace(/(.*).md/, '$1'); | ||
page.contents = page.contents?.replace(/\[([^\]]+)\]\((?!https?:)([^)]+)\)/g, (match, text, url) => { | ||
let relativeUrl = url?.replace(/\.md/g, ''); | ||
if (!relativeUrl.startsWith('.') && !relativeUrl.startsWith('/')) { | ||
@@ -60,0 +60,0 @@ relativeUrl = './' + relativeUrl; |
{ | ||
"name": "typedoc-gitlab-wiki-theme", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A TypeDoc ( + typedoc-plugin-markdown ) theme that generates Markdown compatible with Gitlab Wiki.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,3 +5,3 @@ # typedoc-gitlab-wiki-theme | ||
> A TypeDoc ( + typedoc-plugin-markdown ) theme that generates docs compatible with Gitlab Wiki. | ||
> A TypeDoc ( + typedoc-plugin-markdown ) theme that generates Markdown compatible with Gitlab Wiki. | ||
@@ -8,0 +8,0 @@ ## Installation |
10159
-0.06%