Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

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
docs.yml# Site configuration (required)
versions
v1.yml# Navigation for v1
v0.yml# Navigation for v0
pages
get-started
introduction.mdx
quickstart.mdx
components
overview.mdx
reference# folder navigation: sorted by file name
v0# Legacy pages
openapi
platform.yml# Platform API spec
changelog
2026-11-20.mdx# The file name is the date
snippets
install-cli.mdx# Reusable snippet
assets
logo.svg
custom.css
translations
en
labels.yml# Navigation label translations
pages# English translations at the same paths as pages/
.biti# Dev cache and translation memory

What each part does

docs.ymlfileRequired

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.

pages/directory

MDX or Markdown pages (.mdx / .md). Only files that appear in the navigation are published; folder navigation automatically includes every page in a directory.

versions/, products/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/directory

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/directory

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.

snippets/directory

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.

assets/directory

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/<lang>/directory

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.

.well-known/agent-skills/directory

Skills published with the site, one folder each. See Hosted skills.

.biti/directory

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.

AGENTS.mdfile

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

WhereHowRelative to
path in docs.yml and version filespages/intro.mdxProject root
Links in pages./quickstart.mdx, ../api/openapi.mdxThe current page file; replaced with the target page's URL in the current locale and version
Links in pages/guides/get-started/quickstartSite URL; replaced with the URL in the current locale and version
Images in pages/assets/diagram.svgProject root (recommended; won't break in translations)
Images in pages../assets/diagram.svgThe 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):

Build output
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)