Skip to content

Rimfe for Mintlify docs

Mintlify docs are MDX files beside a docs.json (or older mint.json) in your repository. Rimfe detects that file, watches the MDX pages around it, and checks each code pull request against them. When Mintlify builds a preview of a Rimfe docs pull request, Rimfe links it.

Updated

Where the docs live

.mdx pages in the folder that holds docs.json or mint.json, which may be the repository root or a docs/ folder. Reusable snippets live in a snippets/ folder.

What Rimfe watches

  • Detected by mint.json, or by a docs.json that is a Mintlify config.
  • Suggested scope: the folder holding that file, with the docs formats found there.
  • Pages generated from a spec, such as openapi: 'POST /teams' in front matter, are matched to the spec file.

Sample .rimfe.json

Commit this to your default branch, then set Documentation scope to .rimfe.json at the PR base on the repository's Advanced settings tab. Rimfe reads it from each pull request's base commit.

.rimfe.json
{  "$schema": "https://rimfe.com/schema/rimfe.json",  "docsGlobs": [    "docs/**/*.mdx"  ],  "docsIgnorePaths": [    "docs/snippets/**"  ],  "codeMappings": [    {      "source": "apps/api/src/routes/teams.ts",      "target": "docs/api-reference/teams/"    },    {      "source": "apps/api/openapi.yaml",      "target": "docs/api-reference/"    }  ],  "rules": [    "Every new API route needs an operation page under docs/api-reference/"  ]}

Worked example: the code change

A pull request changes apps/api/src/routes/teams.ts. Nothing in the pull request touches the docs.

apps/api/src/routes/teams.ts
- const limit = Number(query.limit ?? 20);+ const limit = Number(query.limit ?? 50);

Worked example: the page it makes wrong

docs/api-reference/teams/list.mdx still states the old behavior. Rimfe quotes both sides as evidence and suggests this patch.

docs/api-reference/teams/list.mdx
- <ParamField query="limit" type="number" default="20">+ <ParamField query="limit" type="number" default="50">

Limits

  • Snippets are read as their own files, so a claim inside a snippet is checked once, not where it is imported.
  • Rimfe never edits docs.json; it patches pages only.
  • Mintlify's own agent features are separate. See the comparison.
  • Preview links come only from comments Mintlify's GitHub app wrote.

Try it on your next pull request.

Free for public repositories, with unlimited members.

Start free with GitHub