mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-17 15:42:34 +08:00
fix(docs): meta for HTML documentation changing due to isExpanded
This commit is contained in:
parent
ce9a2a258e
commit
4dd300b702
@ -143,11 +143,11 @@ async function exportData(format: "html" | "markdown", outputPath: string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await cleanUpMeta();
|
await cleanUpMeta(outputPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function cleanUpMeta() {
|
async function cleanUpMeta(outputPath: string) {
|
||||||
const metaPath = path.join(markdownPath, "!!!meta.json");
|
const metaPath = path.join(outputPath, "!!!meta.json");
|
||||||
const meta = JSON.parse(await fs.readFile(metaPath, "utf-8")) as NoteMetaFile;
|
const meta = JSON.parse(await fs.readFile(metaPath, "utf-8")) as NoteMetaFile;
|
||||||
for (const file of meta.files) {
|
for (const file of meta.files) {
|
||||||
traverse(file);
|
traverse(file);
|
||||||
|
15
src/public/app/doc_notes/en/User Guide/!!!meta.json
generated
15
src/public/app/doc_notes/en/User Guide/!!!meta.json
generated
@ -11,7 +11,7 @@
|
|||||||
"title": "User Guide",
|
"title": "User Guide",
|
||||||
"notePosition": 130,
|
"notePosition": 130,
|
||||||
"prefix": null,
|
"prefix": null,
|
||||||
"isExpanded": true,
|
"isExpanded": false,
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"mime": "text/html",
|
"mime": "text/html",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
@ -4064,7 +4064,7 @@
|
|||||||
"title": "Note Types",
|
"title": "Note Types",
|
||||||
"notePosition": 100,
|
"notePosition": 100,
|
||||||
"prefix": null,
|
"prefix": null,
|
||||||
"isExpanded": true,
|
"isExpanded": false,
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"mime": "text/html",
|
"mime": "text/html",
|
||||||
"attributes": [
|
"attributes": [
|
||||||
@ -5170,7 +5170,7 @@
|
|||||||
"title": "Book",
|
"title": "Book",
|
||||||
"notePosition": 120,
|
"notePosition": 120,
|
||||||
"prefix": null,
|
"prefix": null,
|
||||||
"isExpanded": true,
|
"isExpanded": false,
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"mime": "text/markdown",
|
"mime": "text/markdown",
|
||||||
"attributes": [
|
"attributes": [
|
||||||
@ -8106,15 +8106,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"noImport": true,
|
"noImport": true,
|
||||||
"dataFileName": "navigation.html"
|
"dataFileName": "navigation.html",
|
||||||
|
"isExpanded": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"noImport": true,
|
"noImport": true,
|
||||||
"dataFileName": "index.html"
|
"dataFileName": "index.html",
|
||||||
|
"isExpanded": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"noImport": true,
|
"noImport": true,
|
||||||
"dataFileName": "style.css"
|
"dataFileName": "style.css",
|
||||||
|
"isExpanded": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user