mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +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;
|
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) {
|
if (minify) {
|
||||||
|
|||||||
2
apps/server/src/assets/doc_notes/en/User Guide/!!!meta.json
generated
vendored
2
apps/server/src/assets/doc_notes/en/User Guide/!!!meta.json
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user