Guides
Task-oriented guides for configuring docvia, integrating it with a framework, and extending the pipeline.
The guides cover docvia from the user's side — how to configure it, wire it into an app, and extend it. For the API surface of an individual package, see the Packages reference.
In this section
- Configuration — every option accepted by
defineConfig, with defaults and types. - Framework integration — SvelteKit, Next.js, and plain Vite setups.
- CLI reference — every
docviacommand and flag. - Writing plugins — the five pipeline hook points and how to author a plugin.
- Architecture — the compile pipeline, the IR, and the generated module graph.
- Incremental builds — how the content-hash cache decides what to rebuild.
The mental model
docvia has two halves:
- The compile core (
CompileService) reads Markdown, runs it through the pipeline, and produces a typed module graph — at build time, in the dev server, or per request. - A framework integration consumes that module graph — the source module
(
virtual:docvia/sourceon Vite,docvia/sourceon Next.js) gives yougetPage,getPages, andpageTree, and a renderer turns each page's content into framework-native output.
The same core runs in three modes — build, dev, and SSR — so their output is identical. Everything else — plugins, the frontmatter schema, the incremental cache, syntax highlighting — is a detail of how the core produces that module graph. See Architecture for the full picture.