Project structure
A biti project is just a regular Git directory of configuration, pages, specs, assets, and translations.
Directory conventions
Below is the actual structure of this site (apps/docs/). Apart from docs.yml, every directory name is just a convention: where pages, specs, and assets live is determined by the paths in docs.yml.
apps/docs
versions
pages
get-started
components
reference# folder navigation: sorted by file name
v0# Legacy pages
openapi
changelog
snippets
assets
translations
en
pages# English translations at the same paths as pages/
.biti# Dev cache and translation memory
What each part does
Site configuration and navigation. The CLI looks for docs.yml, docs.yaml, fern/docs.yml, biti/docs.yml, docs.json, and mint.json in that order and uses the first one it finds. The directory containing the config file is the project root, and all other paths are relative to it.
MDX or Markdown pages (.mdx / .md). Only files that appear in the navigation are published; folder navigation automatically includes every page in a directory.
With multiple versions or products, each version's (or product's) navigation lives in a separate YAML file of the form { tabs?, navigation }, referenced by versions[].path / products[].path in docs.yml.
OpenAPI 3.x or Swagger 2 specs (YAML or JSON), referenced by api nodes in the navigation. The build publishes the spec at /openapi.json and other URLs for download; see Download the spec.
Changelog entries. File names must start with a date: 2026-11-20.mdx or 2026-11-20-ask-ai.mdx. You can have multiple files for the same day.
Reusable snippets. When you write only a file name, as in <Markdown src="install-cli.mdx" />, it's looked up under snippets/ at the project root. See Reusable snippets and variables.
Images, videos, fonts, and styles. Files referenced by pages are copied to /_biti/files/<path-in-project> at build time; unreferenced files don't end up in the output.
Translations for non-default locales: MDX files at the same paths as the originals, plus a labels.yml that translates navigation labels. Pages without a translation fall back to the default-locale original. See Internationalization.
Skills published with the site, one folder each. See Hosted skills.
State biti keeps on your computer: the record of the last sync, conflict copies left by biti pull (.biti/conflicts/), and the translation memory for biti translate (.biti/translation-memory.json; committing it to the repository is recommended for incremental translation). biti deploy skips .biti, node_modules, .git, and dist when packaging.
Instructions generated by biti init that tell coding agents like Claude Code and Cursor how to edit the docs safely: run biti check --json after making changes, and use biti components to look up components and props.
Path resolution rules
| Where | How | Relative to |
|---|---|---|
path in docs.yml and version files | pages/intro.mdx | Project root |
| Links in pages | ./quickstart.mdx, ../api/openapi.mdx | The current page file; replaced with the target page's URL in the current locale and version |
| Links in pages | /guides/get-started/quickstart | Site URL; replaced with the URL in the current locale and version |
| Images in pages | /assets/diagram.svg | Project root (recommended; won't break in translations) |
| Images in pages | ../assets/diagram.svg | The current page file |
Translations live in translations/en/pages/…, two levels deeper than the originals. Use project-root paths starting with / for images, or relative paths will point to nonexistent locations in translations. Relative links between pages are unaffected: the builder maps them back to the original paths automatically.
Build output
Files the platform generates on every build (relative to the site root):
index.html # Root URL: redirects to the home page (when it isn't /)
guides/get-started/quickstart/index.html
guides/get-started/quickstart.md
en/guides/get-started/quickstart/index.html
llms.txt llms-full.txt en/llms.txt en/llms-full.txt
sitemap.xml robots.txt _redirects 404.html
changelog/rss.xml
openapi.json openapi.yaml openapi/platform.json
.well-known/api-catalog .well-known/agent-skills/index.json
_biti/theme.<hash>.css _biti/site.<hash>.css _biti/js/… _biti/fonts/…
_biti/files/assets/logo.svg # Referenced assets
_biti/openapi/platform.yml # Spec download (file name taken from api-name)
_biti/pagefind/… # Search index
_biti/ai-index.json # Ask AI / MCP retrieval index
_biti/manifest.json # Page manifest (used by the runtime)