Rimfe for Astro Starlight docs
Starlight pages are Markdown or MDX in src/content/docs. Rimfe recognises any file under that path and suggests the folder, including MDX. Locale folders such as fr/ are matched to their English source and listed on a finding rather than reviewed, so one change does not produce a finding per language.
Where the docs live
src/content/docs/**/*.{md,mdx} inside an Astro project, which may sit in a subfolder such as apps/site. Locale copies sit under folders named for the language.
What Rimfe watches
- Detected by any file under a
src/content/docs/folder; it does not readastro.config. - Suggested scope:
src/content/docs/**/*.{md,mdx}, prefixed with the app folder when needed. .mdocMarkdoc pages are not read.
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.
{ "$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" } ]}Worked example: the code change
A pull request changes packages/integration/src/schema.ts. Nothing in the pull request touches the docs.
- editLink: z.object({ baseUrl: z.string() }),+ editLink: z.object({ base: z.string() }),Worked example: the page it makes wrong
src/content/docs/reference/configuration.mdx still states the old behavior. Rimfe quotes both sides as evidence and suggests this patch.
- Set `editLink.baseUrl` to the URL of your repository.+ Set `editLink.base` to the URL of your repository.Limits
- Another Astro content setup in the same folder shows the same badge; detection matches the path.
- Translations are listed on a finding, not reviewed.
- Astro components imported into MDX are not expanded.
- Pages generated from content collections at build time are not files in git.
Try it on your next pull request.
Free for public repositories, with unlimited members.
Start free with GitHub