mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 23:35:50 +01:00
chore(build-docs): fix URL
This commit is contained in:
@@ -23,6 +23,8 @@ if (!DOCS_ROOT || !USER_GUIDE_ROOT) {
|
|||||||
throw new Error("Missing DOCS_ROOT or USER_GUIDE_ROOT environment variable.");
|
throw new Error("Missing DOCS_ROOT or USER_GUIDE_ROOT environment variable.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const BASE_URL = "https://docs.triliumnotes.org";
|
||||||
|
|
||||||
const NOTE_MAPPINGS: NoteMapping[] = [
|
const NOTE_MAPPINGS: NoteMapping[] = [
|
||||||
{
|
{
|
||||||
rootNoteId: "pOsGYCXsbNQG",
|
rootNoteId: "pOsGYCXsbNQG",
|
||||||
@@ -163,7 +165,7 @@ async function cleanUpMeta(outputPath: string, minify: boolean) {
|
|||||||
if (el.type === "webView" && minify) {
|
if (el.type === "webView" && minify) {
|
||||||
const srcAttr = el.attributes.find(attr => attr.name === "webViewSrc");
|
const srcAttr = el.attributes.find(attr => attr.name === "webViewSrc");
|
||||||
if (srcAttr.value.startsWith("/")) {
|
if (srcAttr.value.startsWith("/")) {
|
||||||
srcAttr.value = "docs.triliumnotes.org" + srcAttr.value;
|
srcAttr.value = BASE_URL + srcAttr.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
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