Templates
Copy or download the files teams add when they adopt Rimfe: a .rimfe.json scope for your docs framework, a pull request template with a docs-impact checkbox, and a CODEOWNERS file for docs. Each config is checked against the real schema in our tests, and each framework has a page with a worked example.
Pull request and ownership files
Pull request template
A docs-impact checklist for every pull request. Rimfe checks the answer, so a ticked box is not the only safeguard.
## What changed
<!-- One or two sentences. -->
## Docs impact
- [ ] This change adds, renames or removes a flag, route, config key, env var or setup step, and I updated the docs- [ ] This change needs no docs update
Rimfe reviews this pull request for docs the change makes wrong. Comment `@rimfe review` to run it again.
Docs owners in .rimfe.json
Owners Rimfe asks to review its docs pull requests and notifies when their pages go stale. Takes precedence over CODEOWNERS for docs paths.
{ "docsGlobs": ["README.md", "docs/**/*.{md,mdx}"], "owners": [ { "paths": ["docs/api/**"], "owners": ["@your-org/api-team"] }, { "paths": ["docs/guides/**", "README.md"], "owners": ["@your-org/docs-team"] } ]}
CODEOWNERS for docs
Map docs paths to the teams who review them. GitHub requests their review on any pull request that touches those files, including Rimfe's docs pull requests.
# Docs are reviewed by the team that owns the code they describe./docs/api/ @your-org/api-team/docs/guides/ @your-org/docs-team/README.md @your-org/docs-team
.rimfe.json presets
Docusaurus
Scope for Docusaurus: Suggested scope: `docs/**/*.{md,mdx}`, or `website/docs/**/*.{md,mdx}` for a config in `website/`, plus a root README.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "README.md", "docs/**/*.{md,mdx}" ], "docsIgnorePaths": [ "versioned_docs/**", "docs/api/reference/**" ], "ignorePaths": [ "**/*.test.ts", "website/src/css/**" ], "codeMappings": [ { "source": "packages/client/src/**", "target": "docs/api/client.mdx" } ]}MkDocs
Scope for MkDocs: Suggested scope: the `docs_dir` folder next to that file, as `docs/**/*.{md,mdx}`, plus a root README.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "README.md", "docs/**/*.md" ], "docsIgnorePaths": [ "docs/fr/**", "docs/includes/**" ], "ignorePaths": [ "tests/**" ], "codeMappings": [ { "source": "src/mytool/cli/**", "target": "docs/cli.md" }, { "source": "src/mytool/config.py", "target": "docs/configuration.md" } ]}Mintlify
Scope for Mintlify: Suggested scope: the folder holding that file, with the docs formats found there.
{ "$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/" ]}Fumadocs
Scope for Fumadocs: Suggested scope: the docs directory from `source.config`, or `content/docs`, in the app's folder.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "apps/web/content/docs/**/*.{md,mdx}" ], "ignorePaths": [ "apps/web/src/components/**" ], "codeMappings": [ { "source": "apps/web/src/env.ts", "target": "apps/web/content/docs/deployment.mdx" }, { "source": "packages/sdk/src/**", "target": "apps/web/content/docs/sdk/" } ]}Nextra
Scope for Nextra: Suggested scope: that folder, with the docs formats found in it.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "content/**/*.{md,mdx}" ], "docsIgnorePaths": [ "content/changelog/**" ], "codeMappings": [ { "source": "packages/core/src/config/**", "target": "content/configuration.mdx" } ], "surface": [ "cache", "retries", "RETRY_LIMIT" ]}Sphinx
Scope for Sphinx: Suggested scope: that folder, with `.rst` as the fallback extension when no page is in the tree yet.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "README.rst", "docs/**/*.{rst,md}" ], "docsIgnorePaths": [ "docs/_build/**", "docs/locale/**" ], "ignorePaths": [ "tests/**" ], "codeMappings": [ { "source": "src/acme/client.py", "target": "docs/usage.rst" } ]}Hugo
Scope for Hugo: Default scope: every `.md`, `.mdx`, `.rst` and `.adoc` file in the repository, except build, dist, vendor and similar folders and changelogs.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "README.md", "site/content/docs/**/*.md" ], "docsIgnorePaths": [ "site/content/blog/**", "site/content/docs/_generated/**" ], "ignorePaths": [ "**/*_test.go" ], "codeMappings": [ { "source": "cmd/acme/**", "target": "site/content/docs/cli.md" } ]}VitePress
Scope for VitePress: Suggested scope: the folder containing `.vitepress`, which is `.` when the site is at the root.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "docs/**/*.md" ], "docsIgnorePaths": [ "docs/.vitepress/**", "docs/public/**" ], "ignorePaths": [ "**/*.spec.ts" ], "codeMappings": [ { "source": "packages/plugin/src/options.ts", "target": "docs/guide/options.md" } ]}Starlight
Scope for Starlight: Suggested scope: `src/content/docs/**/*.{md,mdx}`, prefixed with the app folder when needed.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "src/content/docs/**/*.{md,mdx}" ], "docsIgnorePaths": [ "src/content/docs/reference/generated/**" ], "translations": "list", "codeMappings": [ { "source": "packages/integration/src/**", "target": "src/content/docs/reference/configuration.mdx" } ]}Antora
Scope for Antora: Suggested scope: that folder with `.adoc`, the fallback extension when no page is found.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "docs/modules/**/*.adoc" ], "docsIgnorePaths": [ "docs/modules/ROOT/partials/**" ], "ignorePaths": [ "src/test/**" ], "codeMappings": [ { "source": "src/main/java/**/ServerConfig.java", "target": "docs/modules/ROOT/pages/configuration.adoc" } ]}GitBook
Scope for GitBook: Suggested scope: that folder with the docs formats found in it.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "README.md", "docs/**/*.md" ], "docsIgnorePaths": [ "docs/SUMMARY.md" ], "codeMappings": [ { "source": "action.yml", "target": "docs/github-action.md" } ]}ReadMe
Scope for ReadMe: OpenAPI and Swagger specs in the repository are always reviewed when they change, and never counted as pages.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "docs/**/*.md", "reference/**/*.md" ], "codeMappings": [ { "source": "openapi.yaml", "target": "reference/" }, { "source": "src/webhooks/**", "target": "docs/webhooks.md" } ]}Try it on your next pull request.
Free for public repositories, with unlimited members.
Start free with GitHub