From e62137f2451766212017ae4234ddebd437a66a3b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 29 Mar 2025 11:28:31 +0200 Subject: [PATCH] fix(docs): meta for HTML documentation changing due to root notePosition --- docs/User Guide/!!!meta.json | 2 +- electron-docs-main.ts | 1 + src/public/app/doc_notes/en/User Guide/!!!meta.json | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json index 6b10f53da..2df822678 100644 --- a/docs/User Guide/!!!meta.json +++ b/docs/User Guide/!!!meta.json @@ -9,7 +9,7 @@ "pOsGYCXsbNQG" ], "title": "User Guide", - "notePosition": 130, + "notePosition": 1, "prefix": null, "isExpanded": false, "type": "text", diff --git a/electron-docs-main.ts b/electron-docs-main.ts index ff56a82a8..9106bb025 100644 --- a/electron-docs-main.ts +++ b/electron-docs-main.ts @@ -150,6 +150,7 @@ async function cleanUpMeta(outputPath: string) { const metaPath = path.join(outputPath, "!!!meta.json"); const meta = JSON.parse(await fs.readFile(metaPath, "utf-8")) as NoteMetaFile; for (const file of meta.files) { + file.notePosition = 1; traverse(file); } diff --git a/src/public/app/doc_notes/en/User Guide/!!!meta.json b/src/public/app/doc_notes/en/User Guide/!!!meta.json index 70b473a9e..ede3e0d3c 100644 --- a/src/public/app/doc_notes/en/User Guide/!!!meta.json +++ b/src/public/app/doc_notes/en/User Guide/!!!meta.json @@ -9,7 +9,7 @@ "pOsGYCXsbNQG" ], "title": "User Guide", - "notePosition": 130, + "notePosition": 1, "prefix": null, "isExpanded": false, "type": "text", @@ -8107,16 +8107,19 @@ { "noImport": true, "dataFileName": "navigation.html", + "notePosition": 1, "isExpanded": false }, { "noImport": true, "dataFileName": "index.html", + "notePosition": 1, "isExpanded": false }, { "noImport": true, "dataFileName": "style.css", + "notePosition": 1, "isExpanded": false } ]