Getting Started
Install
yarn add --dev documintsdocumints is a dev dependency - it's a build tool, not a runtime library. The static
site it produces has no dependency on documints at runtime.
Bootstrap a project
yarn documints initThis scaffolds:
your-project/
└── .documints/
├── config.ts
└── content/
└── welcome.doc.mdwelcome.doc.md is created with home: true in its frontmatter, so it's immediately
servable as your site's root page.
Develop
yarn documints devStarts a dev server with hot module reloading. Edit any .doc.md file and see the change
immediately - no restart needed.
Build
yarn documints buildProduces .documints/static/: real, prerendered index.html files for every route, plus
the JS/CSS assets they reference. Deploy that directory to any static host - there's no
server process to run. It's gitignored by default (documints init sets that up for you),
same as the Vite cache.
Next steps
- Guides/Introduction/Usage - the day-to-day write/preview/build/deploy loop.
- Guides/Introduction/Deploy - the top 5 static hosts, step by step.
- Guides/Writing/Writing Docs - the frontmatter contract in detail.
- Guides/Customization/Routing - how hierarchy, the nav, and the header connect.
- Guides/Configuration -
.documints/config.tsoptions. - Guides/Advanced/Plugins - built-in and third-party Vite plugins.
- Reference/CLI - every command and flag.
- Reference/How Documints Works - the architecture, end to end.
