feat(build-docs): rewrite URLs for in-app help

This commit is contained in:
Elian Doran 2025-11-02 19:45:16 +02:00
parent 966e5a2ef3
commit beb7c66ff5
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View File

@ -158,6 +158,14 @@ async function cleanUpMeta(outputPath: string, minify: boolean) {
}
el.isExpanded = false;
// Rewrite web view URLs that point to root.
if (el.type === "webView" && minify) {
const srcAttr = el.attributes.find(attr => attr.name === "webViewSrc");
if (srcAttr.value.startsWith("/")) {
srcAttr.value = "docs.triliumnotes.org" + srcAttr.value;
}
}
}
if (minify) {

File diff suppressed because one or more lines are too long