mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
fix(docs): meta for HTML documentation changing due to isExpanded
This commit is contained in:
@@ -143,11 +143,11 @@ async function exportData(format: "html" | "markdown", outputPath: string) {
|
||||
}
|
||||
}
|
||||
|
||||
await cleanUpMeta();
|
||||
await cleanUpMeta(outputPath);
|
||||
}
|
||||
|
||||
async function cleanUpMeta() {
|
||||
const metaPath = path.join(markdownPath, "!!!meta.json");
|
||||
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) {
|
||||
traverse(file);
|
||||
|
||||
Reference in New Issue
Block a user