This repository contains the documentation site for Trunk, powered by Fern.
fern/
├── fern.config.json # Fern project configuration
├── docs.yml # Documentation site layout, navigation, and styling
├── apis/
│ ├── flaky-tests-api/
│ │ ├── openapi.yml # Flaky Tests API spec
│ │ └── generators.yml # Generator config
│ └── merge-queue-api/
│ ├── openapi.yml # Merge Queue API spec
│ └── generators.yml # Generator config
└── docs/
├── assets/ # Logos and favicon
└── pages/ # Documentation content (MDX)
├── merge-queue/
├── flaky-tests/
├── ci-autopilot/
├── code-quality/
└── setup/
Install the Fern CLI:
npm install -g fern-apiPreview the docs locally:
fern docs devThis starts a local development server so you can see changes in real time.
To generate and publish the documentation site:
fern generate --docs- Pages are written in MDX and live in
fern/docs/pages/. - Navigation and layout are configured in
fern/docs.yml. - API references are auto-generated from the OpenAPI specs in
fern/apis/.