create-dox
v0.1.0
Published
Scaffold a new Dox documentation project.
Maintainers
Readme
create-dox
Scaffold a new Dox documentation project in seconds.
Usage
With npx (recommended)
npx create-dox my-docsOr install globally
npm install -g create-dox
create-dox my-docsInteractive prompts
If you run without arguments, the CLI will ask you:
$ npx create-dox
╔══════════════════════════════════════╗
║ ██████╗ ██████╗ ██╗ ██╗ ║
║ ██╔══██╗██╔═══██╗╚██╗██╔╝ ║
║ ██║ ██║██║ ██║ ╚███╔╝ ║
║ ██║ ██║██║ ██║ ██╔██╗ ║
║ ██████╔╝╚██████╔╝██╔╝ ██╗ ║
║ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ║
║ ║
║ Beautiful docs, zero lock-in. ║
╚══════════════════════════════════════╝
Project directory (my-docs): acme-docs
Project name (Acme Docs):
Description (Documentation for Acme Docs.):
Brand preset:
1) primary
2) secondary
> Choose [1]: 1
GitHub repo URL (optional): https://github.com/acme/docs
Install dependencies? (Y/n): YWhat it does
- Clones the Dox template from GitHub
- Replaces example content with starter pages customized to your project name
- Updates
src/data/site.tswith your name, description, branding, and repo URL - Writes a minimal
docs.jsonnavigation config - Installs dependencies
- Initializes a fresh git repo
After scaffolding
cd my-docs
npm run devOpen http://localhost:3040 to see your docs.
Key files
| File | Purpose |
| --- | --- |
| src/data/site.ts | Site name, links, brand colors |
| docs.json | Navigation tabs, groups, pages |
| src/content/*.mdx | Your documentation pages |
| openapi.yaml | API spec (optional) |
Requirements
- Node.js >= 18
- Git
