Docs site
Write Markdown files. Get a documentation site that people and coding agents can read.
- Node
- Cloudflare
export default defineNuxtConfig({
modules: ['vite-hub/docs/nuxt'],
docs: {
// Name in titles, the rail, and llms.txt
site: { name: 'Lumen', url: 'https://lumen.example.com' },
},
})@vite-hub/docs is a Nuxt module. Each folder in content/docs/ is a section, and each Markdown file in it is a page. The module adds a shell, search, and a Markdown copy of each page for coding agents. vitehub.dev uses it.
Markdown in, site out
Inside your Nuxt app
content/docs/ are at /docs. The app keeps its own pages, its app.vue, and its theme.Three layouts
article for guides, tutorial for numbered steps with a code panel, and landing for Overviews.Navigation and outline per page
Replace any part
DocsPageHeaderLinks, and the shell uses yours.Pages for coding agents
/raw. llms.txt, a sitemap, and an MCP server need no setup.Edit pages in the Console
Defaults first
Section titled "Defaults first"The design follows the comark-ui site: Geist, neutral grays, small radii, hairline rings, and a faint grain. Every option has a default, so a site name is enough to start. To change a default, edit one option in nuxt.config.ts, one frontmatter field, or one component. See Configure.
Reference and limits
Section titled "Reference and limits"The Server API lists every module option, frontmatter field, export, and route. Limits and errors lists what the module does not do yet and how to fix each error.
Use without ViteHub
Section titled "Use without ViteHub"The module also works in a Nuxt app without vite-hub. Install @vite-hub/docs and add @vite-hub/docs/nuxt to modules:
npm install @vite-hub/docspnpm add @vite-hub/docsyarn add @vite-hub/docsbun add @vite-hub/docsexport default defineNuxtConfig({
modules: ['@vite-hub/docs/nuxt'],
docs: { site: { name: 'Lumen' } },
})Import the other paths from @vite-hub/docs too, such as createDocsManifest() from @vite-hub/docs/server. Without vite-hub/nuxt, the site has no Comments and no assistant.