# Rimfe for Mintlify docs

Source: https://rimfe.com/docs-frameworks/mintlify
Updated: October 30, 2026

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.

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

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

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

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

## Related

- [Rimfe vs Mintlify](https://rimfe.com/compare/mintlify)
- [OpenAPI: what Rimfe reads](https://rimfe.com/stacks/openapi)
- [Keep API docs updated](https://rimfe.com/guides/keep-api-docs-updated-when-code-changes)
- [What is llms.txt?](https://rimfe.com/learn/llms-txt)
- [Hosted docs sites](https://rimfe.com/integrations/hosted-docs)
- [llms.txt generator and validator](https://rimfe.com/tools/llms-txt)
