Rimfe for VitePress docs
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.
{ "$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.
- 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.
- `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.jsare not files in git. - The sidebar in
.vitepress/config.tsis not read. - Frontmatter
layout: homepages are read as ordinary Markdown.
Try it on your next pull request.
Free for public repositories, with unlimited members.
Start free with GitHub