# Rimfe for VitePress docs

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

VitePress serves the folder that holds .vitepress, which is sometimes the repository root. Rimfe detects the .vitepress config and suggests that folder, so check the suggestion: a root-level site would pull in every README. Prefer an explicit docs/**/*.md glob and ignore .vitepress.

## Where the docs live

Markdown pages in the VitePress source folder, often `docs/`, with configuration in `.vitepress/config.ts` and static assets in `public/`.

## What Rimfe watches

- Detected by a `.vitepress/config.*` file.
- Suggested scope: the folder containing `.vitepress`, which is `.` when the site is at the root.
- Narrow a root-level suggestion to the folder that holds the pages.

## 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/**/*.md"
  ],
  "docsIgnorePaths": [
    "docs/.vitepress/**",
    "docs/public/**"
  ],
  "ignorePaths": [
    "**/*.spec.ts"
  ],
  "codeMappings": [
    {
      "source": "packages/plugin/src/options.ts",
      "target": "docs/guide/options.md"
    }
  ]
}
```

## Worked example: the code change

A pull request changes `packages/plugin/src/options.ts`. Nothing in the pull request touches the docs.

```diff
- export const defaults = { strict: false };
+ export const defaults = { strict: true };
```

## Worked example: the page it makes wrong

`docs/guide/options.md` still states the old behavior. Rimfe quotes both sides as evidence and suggests this patch.

```diff
- `strict` is off by default, so unknown keys are ignored.
+ `strict` is on by default, so unknown keys throw an error.
```

## Limits

- Vue components embedded in Markdown are not evaluated.
- Dynamic routes and pages generated in `paths.js` are not files in git.
- The sidebar in `.vitepress/config.ts` is not read.
- Frontmatter `layout: home` pages are read as ordinary Markdown.

## Related

- [TypeScript: what Rimfe reads](https://rimfe.com/stacks/typescript)
- [Require docs updates before merging](https://rimfe.com/guides/require-docs-updates-before-merging-prs)
- [Templates](https://rimfe.com/templates)
- [What is docs-as-code?](https://rimfe.com/learn/docs-as-code)
- [Documentation scope](https://docs.rimfe.com/configuration/docs-scope)
