Rimfe for GitBook repositories
When GitBook syncs a space with a GitHub repository, your pages are Markdown files in git, and Rimfe can review them. Setup detects .gitbook.yaml and reads its root folder. Content that exists only inside GitBook's editor, with no sync, is not in git and is not seen.
Where the docs live
Markdown files in the repository folder named by root in .gitbook.yaml (the repository root by default), with SUMMARY.md as the table of contents and README.md as the landing page.
What Rimfe watches
- Detected by a
.gitbook.yamlor.gitbook.ymlfile; itsrootsetting names the folder. - Suggested scope: that folder with the docs formats found in it.
SUMMARY.mdis a table of contents; ignore it so it is not treated as a page of claims.
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": [ "README.md", "docs/**/*.md" ], "docsIgnorePaths": [ "docs/SUMMARY.md" ], "codeMappings": [ { "source": "action.yml", "target": "docs/github-action.md" } ]}Worked example: the code change
A pull request changes action.yml. Nothing in the pull request touches the docs.
- token:- required: false+ token:+ required: trueWorked example: the page it makes wrong
docs/github-action.md still states the old behavior. Rimfe quotes both sides as evidence and suggests this patch.
- The `token` input is optional.+ The `token` input is required.Limits
- Only synced content is in git. Pages that exist only in GitBook are not reviewed.
- GitBook-specific blocks (hints, tabs, embeds) are read as the text the sync writes.
- A patch is a pull request on your repository; GitBook picks it up through sync.
- Rimfe does not call the GitBook API.
Try it on your next pull request.
Free for public repositories, with unlimited members.
Start free with GitHub