mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 00:02:28 +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);
|
||||||
|
16237
src/public/app/doc_notes/en/User Guide/!!!meta.json
generated
16237
src/public/app/doc_notes/en/User Guide/!!!meta.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user