Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 4dd300b

Browse files
committed
fix(docs): meta for HTML documentation changing due to isExpanded
1 parent ce9a2a2 commit 4dd300b

File tree

2 files changed

+8123
-8120
lines changed

2 files changed

+8123
-8120
lines changed

electron-docs-main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ async function exportData(format: "html" | "markdown", outputPath: string) {
143143
}
144144
}
145145

146-
await cleanUpMeta();
146+
await cleanUpMeta(outputPath);
147147
}
148148

149-
async function cleanUpMeta() {
150-
const metaPath = path.join(markdownPath, "!!!meta.json");
149+
async function cleanUpMeta(outputPath: string) {
150+
const metaPath = path.join(outputPath, "!!!meta.json");
151151
const meta = JSON.parse(await fs.readFile(metaPath, "utf-8")) as NoteMetaFile;
152152
for (const file of meta.files) {
153153
traverse(file);

0 commit comments

Comments
 (0)