---
title: Project structure
subtitle: A biti project is just a regular Git directory of configuration, pages, specs, assets, and translations.
description: Directory conventions for biti projects — docs.yml lookup order, pages, openapi, assets, snippets, changelog, versions, translations, and .biti.
---

## 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`.

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

## What each part does

<ParamField path="docs.yml" type="file" required>
  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.
</ParamField>

<ParamField path="pages/" type="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.
</ParamField>

<ParamField path="versions/, products/" type="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`.
</ParamField>

<ParamField path="openapi/" type="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](../api/openapi.mdx#download-the-spec).
</ParamField>

<ParamField path="changelog/" type="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.
</ParamField>

<ParamField path="snippets/" type="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](../writing/snippets.mdx).
</ParamField>

<ParamField path="assets/" type="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.
</ParamField>

<ParamField path="translations/<lang>/" type="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](../features/i18n.mdx).
</ParamField>

<ParamField path=".well-known/agent-skills/" type="directory">
  Skills published with the site, one folder each. See [Hosted skills](../features/agents.mdx#hosted-skills).
</ParamField>

<ParamField path=".biti/" type="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.
</ParamField>

<ParamField path="AGENTS.md" type="file">
  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.
</ParamField>

## 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 |

<Warning>
  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.
</Warning>

## Build output

Files the platform generates on every build (relative to the site root):

```text title="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)
```
