Quickstart
Install
Writedocs runs on Node.js 22.12 or newer. Install it once, globally:
npm install -g @writedocs/generatorwritedocs is now a command you can run in any folder. Your docs folder doesn’t need a package.json of its own.
To try it without installing, put npx @writedocs/generator in front of any command instead of writedocs - for example npx @writedocs/generator dev.
Create a project
mkdir my-docs && cd my-docs
writedocs initThis writes writedocs.json, a home page (index.mdx) and docs/getting-started.mdx. To create the project in another folder, pass its path: writedocs init ./my-docs.
Coming from Mintlify? Run writedocs convert --mintlify in your project instead - see Migrating from Mintlify.
Preview it
writedocs devRun it in the folder writedocs.json is in. It opens the site in your browser (http://localhost:4321), and updates it as you edit pages and writedocs.json.
Check it
writedocs validate
writedocs broken-linksvalidate lists every problem in writedocs.json and the pages, with file and line; broken-links finds links that lead nowhere. Both work well as a CI step.
Publish
Push your changes. The site is built and published from there.
Next steps
Project structure
Where pages, images and snippets go, and how a file becomes a page.
Organize the navigation
Groups in a sidebar, or tabs, versions and languages for larger sites.
Make it yours
Colors, logo, fonts and code themes.
Write pages
Markdown, frontmatter and components.