Quick Start#

This section walks through the default workflow.

Minimal project example#

docia automatically applies syntax highlighting to fenced code blocks.

docia.config.ts:

import { defineConfig } from "docia";

export default defineConfig({
    srcDir: "book",
    outDir: "dist",
    basePath: "/",
    prettyUrls: true,
    site: {
        title: "Acme Docs",
        description: "Internal engineering handbook",
        language: "en",
        url: "https://docs.acme.dev",
    },
});

book/SUMMARY.md:

# Summary

- [Introduction](README.md)
- [Getting Started](getting-started.md)
- [Architecture](architecture.md)

1) Initialize#

docia init handbook
cd handbook

This creates:

  • docia.config.ts
  • book/SUMMARY.md
  • starter chapters
  • public/favicon.svg
  • .gitignore

2) Run local dev#

docia dev

dev performs an initial build, serves static output, and refreshes the browser when source, configuration, or public asset files change. Draft pages are available in development previews.

3) Build production output#

docia build

By default output goes to dist/.

4) Validate before deploy#

docia check

This checks missing files, broken markdown links, duplicate output routes, and orphaned markdown files.