Skip to content
Guide

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

The mental model

docvia has two halves:

flowchart LR
  subgraph core ["1. Compile core"]
    MD["Markdown"] --> CS["CompileService"] --> MG["Typed module graph"]
  end
  subgraph app ["2. Framework integration"]
    MG --> SRC["getPage · getPages · pageTree"] --> REN["Renderer"] --> PAGE["Framework-native page"]
  end
The two halves
  1. 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.
  2. A framework integration consumes that module graph. The source module (virtual:docvia/source on Vite, docvia/source on Next.js) gives you getPage, getPages, and pageTree, 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. Plugins, the frontmatter schema, the incremental cache, and syntax highlighting are all details of how the core produces that module graph. See Architecture for the full picture.