# Rimfe for Astro Starlight docs

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

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 read `astro.config`.
- Suggested scope: `src/content/docs/**/*.{md,mdx}`, prefixed with the app folder when needed.
- `.mdoc` Markdoc 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.

```json
{
  "$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.

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

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

## Related

- [Starlight guide in the docs](https://docs.rimfe.com/guides/starlight)
- [TypeScript: what Rimfe reads](https://rimfe.com/stacks/typescript)
- [Templates](https://rimfe.com/templates)
- [What is docs-as-code?](https://rimfe.com/learn/docs-as-code)
