Skip to content

Commit 5171675

Browse files
committed
chore(build-docs): fix URL
1 parent 6bc5489 commit 5171675

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/edit-docs/src/edit-docs.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ if (!DOCS_ROOT || !USER_GUIDE_ROOT) {
2323
throw new Error("Missing DOCS_ROOT or USER_GUIDE_ROOT environment variable.");
2424
}
2525

26+
const BASE_URL = "https://docs.triliumnotes.org";
27+
2628
const NOTE_MAPPINGS: NoteMapping[] = [
2729
{
2830
rootNoteId: "pOsGYCXsbNQG",
@@ -163,7 +165,7 @@ async function cleanUpMeta(outputPath: string, minify: boolean) {
163165
if (el.type === "webView" && minify) {
164166
const srcAttr = el.attributes.find(attr => attr.name === "webViewSrc");
165167
if (srcAttr.value.startsWith("/")) {
166-
srcAttr.value = "docs.triliumnotes.org" + srcAttr.value;
168+
srcAttr.value = BASE_URL + srcAttr.value;
167169
}
168170
}
169171
}

0 commit comments

Comments
 (0)