mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
feat(build-docs): rewrite URLs for in-app help
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user