Docs as code
# Quick start
Install the package and create a site.
1. composer require simai/docara
2. docara init .
The text is plain Markdown files next to your project. Edit a file and you get a page. History lives in GitHub, changes go through pull requests.
A ready static site
Site build
Link and search check
Publishing to GitHub Pages
The site is built right in GitHub and published to GitHub Pages or any host. No server and no database, only files: that makes it fast, and on GitHub Pages also free.
Many ready-made blocks
Steps Cards Tabs Diagrams Tables Alerts Hero Columns Examples
Use them to build references, guides and landing pages.
How it works
1. Write Markdown
## Installation
Run in the terminal:
`composer require simai/docara`
A page is a file in the docs/ folder. Blocks are Markdown too: :::steps,
:::tabs, :::card.
2. Push to GitHub
git commit -m "Installation page"
git push
git push or a pull request, just like code.
3. The site updates itself
✓ Build ✓ Check ✓ GitHub Pages
GitHub Actions builds and checks the site and deploys it to GitHub Pages. If the check fails, the previous version stays in place.
A ready GitHub Actions workflow file is in Build in CI.
Blocks that make up a page
Every example below is live: switch the tab to see the Markdown it is built from.
Create a project.
Add pages.
Publish the site.
Markdown
Pages are plain text with headings and lists.
JSON
Settings for the site, sections and pages.
PHP
Build and checks come in one Composer package.
composer require simai/docara:^3.0
Download the archive and unpack it into an empty directory.
The finished site appears in the build directory.
return [ 'name' => 'Docara', 'locale' => 'ru',];composer require simai/docara:^3.0php vendor/bin/docara init .php vendor/bin/docara build productionDocara prints the error code, the file and what to fix. Fix the file and run the build again.
Carry on as usual.
For teams and large projects
Several languages
Each language is its own folder. Docara sees which translation has fallen behind the original and can publish only up-to-date pages.
Search without a server
The index is built together with the site. Search runs in the reader’s browser and sends no requests anywhere.
Comfortable reading
Light and dark theme, font size and text width: the reader chooses.
Checks before deploy
Before publishing, Docara checks links, files and search. If something is broken, the site is not deployed.
Install with Composer
A regular PHP package, simai/docara, with the version pinned in
composer.lock. Updating takes one command; on error the previous version
comes back by itself.
Full documentation
Every block with a live example, all settings, build and publishing.
Works with AI agents
Docara works without AI too. If you write with Claude Code or Codex, connect the Docara skill: the agent will know the site’s blocks and rules and will check its work with a build.
Translates pages
The agent translates, and Docara checks that the page structure is kept and the translation has not fallen behind the original.
Moves content over
A README, a docs/ folder and notes become Docara pages with a menu and
search.
Builds a page from a description
“Add an installation page with a tab for each operating system”: the agent builds it from ready-made blocks.
How to connect the skill. The agent builds and checks the site; you decide when to deploy.
FAQ
No. The finished site is static files: HTML, CSS and JavaScript. PHP 8.2+, Composer and Node.js 20+ are needed only where the site is built: on your computer or in GitHub Actions.
Yes. The same blocks make a landing page, a product page or a section of
examples; there is a ready landing preset for the home page.
With php vendor/bin/docara upgrade. Docara first builds and checks the
site on the new version in a separate folder and only then replaces the old
one; on error everything stays as it was.
No. Everything works with regular commands and file edits. The AI agent skill is an extra option.
Docara installs with Composer, like a regular PHP package, not from npm; search, a link check before publishing and translation tracking are already built in.