1. Home
  2. ChevronRightOverview

Overview

Everything you need to build, configure, and customize a Boltdocs documentation site — from installation to advanced layout customization.

Boltdocs turns a folder of Markdown files into a fully rendered, search-indexed, and SEO-optimized documentation site. These guides walk you through every layer of the framework — from getting your first page live in two minutes to building fully custom layouts and injecting your own React components into MDX.


Where to StartLink


Project StructureLink

A freshly scaffolded Boltdocs project looks like this:

my-docs/
├── docs/                  # All your content lives here
│   ├── (guides)/
│   │   └── index.mdx
│   └── index.md           # Root page → /docs
├── public/                # Static assets (images, fonts, favicons)
│   ├── dark.svg
│   └── light.svg
├── src/
│   └── components/        # Your custom React components
├── boltdocs.config.ts     # The brain of your docs site
├── index.html             # Vite HTML entry point
├── index.css              # Global styles
└── package.json

Key DirectoriesLink

docs/ — Everything here becomes a page. Boltdocs recursively scans for .md and .mdx files and turns them into routes. The folder structure maps directly to the URL structure.

boltdocs.config.ts — The single source of truth. Controls theme, navigation, plugins, SEO, i18n, and more. Boltdocs generates the full Vite configuration internally — no separate vite.config.ts needed.

public/ — Static assets served at your site root. Reference them in Markdown with a root-relative path like /my-image.png.

src/components/ — Your custom React components, available for import in .mdx files or registration as global MDX components via plugins.

Optional FilePurpose
docs/layout.tsxCustom docs layout wrapping all pages
docs/**/meta.jsonOverride sidebar group titles, icons, and ordering per directory
doctor.jsonConfig for the boltdocs doctor link checker
Info
No vite.config.ts needed

Boltdocs generates the entire Vite configuration from boltdocs.config.ts. To extend Vite (e.g., add a custom plugin), use the vite key inside defineConfig or write a Boltdocs plugin that exposes vitePlugins.


All GuidesLink

Last updated on July 27, 2026

Was this page helpful?