Skip to content

Commit 2907555

Browse files
committed
build: upgrade mdzilla to 0.2
1 parent 7c2bc9b commit 2907555

File tree

3 files changed

+16
-30
lines changed

3 files changed

+16
-30
lines changed

build.config.mjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,9 @@ export default defineBuildConfig({
1818
config.chunkFileNames = "h3-[hash].mjs";
1919
},
2020
async end() {
21-
const { DocsManager, DocsSourceFS, exportDocsToFS } = await import("mdzilla");
22-
const man = new DocsManager(new DocsSourceFS("./docs"));
23-
await man.load();
24-
await mkdir("./dist/docs", { recursive: true });
25-
await exportDocsToFS(man, "./dist/docs", {
21+
const { exportSource } = await import("mdzilla");
22+
await exportSource("./docs", "./dist/docs", {
2623
title: "H3 Documentation",
27-
tocFile: "TOC.md",
2824
filter: (e) => !e.entry.path.startsWith("/blog"),
2925
});
3026
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"happy-dom": "^20.8.4",
7878
"hono": "^4.12.8",
7979
"magic-string": "^0.30.21",
80-
"mdzilla": "^0.0.6",
80+
"mdzilla": "^0.2.0",
8181
"memoirist": "^0.4.0",
8282
"mitata": "^1.0.34",
8383
"obuild": "^0.4.32",

pnpm-lock.yaml

Lines changed: 13 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)