Skip to content
packages

@docvia/build

docvia's build tooling for Node: the compiler, the page pipeline, config loading, and the Vite and Next.js plugins.

On this page

@docvia/build is the half of docvia that runs on your machine or in CI: it scans your content, loads docvia.config.ts, compiles pages and plugs into Vite or Next.js. It needs Node, and nothing in it ships to the browser or a Worker; what does ship comes from @docvia/core.

Install

pnpm add -D @docvia/build

@docvia/core is a peer dependency, because the code the plugins generate imports it from your app. Vite and Next.js are optional peers: install the one you use.

Subpaths

ImportContents
@docvia/buildThe pipeline and compile service, compile(), and config loading: loadConfig, resolveProject, resolveConfigPath.
@docvia/build/viteThe docvia() Vite plugin and defineConfig.
@docvia/build/nextThe withDocvia() Next.js wrapper and its loaders.