Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"generate": "nuxi build"
},
"dependencies": {
"@comark/html": "^0.8.1",
"@comark/html": "^0.9.0",
"@iconify-json/lucide": "^1.2.100",
"@vite-hub/content": "^0.1.0",
"comark": "^0.8.1",
"comark-content": "^0.4.1",
"comark-icon": "^0.8.0",
"comark-ui": "^0.8.0",
"@vite-hub/content": "https://pkg.pr.new/vite-hub/vitehub/@vite-hub/content@db9f307cc3cba91ad15f23be149e3e240fdab7bd",
"comark": "^0.9.0",
"comark-content": "0.5.1",
"comark-icon": "^0.12.0",
"comark-ui": "^0.12.0",
"geist": "^1.9.0",
"nuxt": "npm:nuxt-nightly@5x",
"shiki": "^4.5.0",
"shiki": "^4.6.0",
"vue": "^3.5.44"
}
}
7 changes: 4 additions & 3 deletions docs/server/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ const plugins = [
...preset.plugins.slice(code),
];

// docs/pages/<slug>.md is the page at /<slug>/, and docs/pages/index.md the home page. A page that fails to parse fails
// the build instead of prerendering empty.
// docs/pages/<slug>.md is the page at /<slug>/, and docs/pages/index.md the home page. `preset: false` keeps Content's
// own Comark UI preset out, so only the plugins above parse the pages. A page that fails to parse fails the build
// instead of prerendering empty.
export const content = defineContent({
source: fs(useRuntimeConfig().pagesDir),
markdown: { plugins },
markdown: { preset: false, plugins },
onError: "throw",
});
Loading
Loading