The source code for docs.mergify.com — the official documentation for Mergify, the merge queue and CI optimization platform.
Built with Astro and MDX.
You need Node.js 24 installed on your machine. If you don't have it yet:
-
Any platform (using nvm — recommended):
nvm install 24 nvm use 24
-
macOS (using Homebrew):
brew install node@24
Since
node@24is a keg-only formula, Homebrew won't add it to your PATH automatically. Follow the instructions Homebrew prints after installation, or add this to your shell profile (~/.zshrcon macOS, or~/.bashrcif you use Bash):export PATH="$(brew --prefix node@24)/bin:$PATH"
Then restart your terminal.
-
Or download directly from nodejs.org
You can verify your Node version with:
node --version
# Should output v24.x.xNote: The required version is specified in the
.node-versionfile at the root of this repository. Tools likenvm,fnm, andmisecan read this file automatically.
-
Clone the repository:
git clone https://github.com/Mergify/mergify-docs.git cd mergify-docs -
Install dependencies:
npm install
This downloads all the packages the project needs. It may take a minute the first time.
-
Start the development server:
npm start
Open http://localhost:4321 in your browser to see the site.
Pages are built on-demand in dev mode, so the first visit to each page may take a few seconds.
| Command | What it does |
|---|---|
npm start |
Start the local development server |
npm run build |
Build the full site for production (with type checks) |
npm run preview |
Preview the production build locally |
npm run check |
Run all linting and type checks |
npm run format |
Auto-format code with Biome |
npm run format:check |
Check formatting without changing files |
npm test |
Run unit tests with Vitest |
src/
├── content/
│ ├── docs/ # Documentation pages (MDX files) — this is where most edits happen
│ └── changelog/ # Changelog entries
├── components/ # Astro and React UI components
├── layouts/ # Page layout templates
└── util/ # Utility functions
integrations/ # Custom Astro integrations
plugins/ # Custom Remark/Rehype plugins
public/ # Static assets (images, fonts, etc.)
All documentation lives in src/content/docs/ as .mdx files. The main sections are:
configuration/— Mergify configuration referencemerge-queue/— Merge queue features and setupcommands/— GitHub comment commandsci-insights/— CI analytics and optimizationmerge-protections/— Branch protection rulesintegrations/— Third-party integrationsenterprise/— Enterprise features
Each .mdx file starts with frontmatter — metadata between --- fences:
---
title: My Page Title
description: A short description of the page.
---
Your content here, written in Markdown.Both title and description are required.
Use directive syntax for callout boxes:
:::note
Important information here.
:::
:::tip
Helpful suggestion.
:::
:::caution
Be careful about this.
:::Place images in src/content/docs/images/ and use relative imports in your MDX files.
Always run the checks before pushing your changes:
npm run checkThis runs TypeScript type checking, ESLint, and Biome formatting checks all at once. Fix any errors before committing.
You can also do a full production build to catch issues that only appear when building all pages:
npm run buildTo see exactly what the site will look like in production:
npm run build && npm run previewThe build compiles every page, so you may see errors here that don't appear in dev mode (where pages are built one at a time).