Skip to content

Rimfe for ReadMe API documentation

ReadMe publishes API docs and can sync them with a GitHub repository. If yours is synced, the Markdown and the OpenAPI file are in git and Rimfe reviews them. Rimfe has no ReadMe detection, so set the globs for your synced folders and map the spec to the reference pages.

Updated

Where the docs live

Wherever your ReadMe sync writes Markdown, commonly folders for guides and for the API reference, plus an OpenAPI file in the repository that ReadMe renders into its interactive reference.

What Rimfe watches

  • Not detected. Set docsGlobs to the synced folders.
  • OpenAPI and Swagger specs in the repository are always reviewed when they change, and never counted as pages.
  • Map the spec file to the reference folder so a missing operation names the page to add.

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.

.rimfe.json
{  "$schema": "https://rimfe.com/schema/rimfe.json",  "docsGlobs": [    "docs/**/*.md",    "reference/**/*.md"  ],  "codeMappings": [    {      "source": "openapi.yaml",      "target": "reference/"    },    {      "source": "src/webhooks/**",      "target": "docs/webhooks.md"    }  ]}

Worked example: the code change

A pull request changes openapi.yaml. Nothing in the pull request touches the docs.

openapi.yaml
-         created:-           type: string+         created_at:+           type: string

Worked example: the page it makes wrong

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

docs/webhooks.md
- Each event includes a `created` timestamp.+ Each event includes a `created_at` timestamp.

Limits

  • Pages that exist only in ReadMe are not in git, so they are not reviewed.
  • ReadMe's rendered reference comes from the spec; Rimfe reviews the spec, not the rendering.
  • Rimfe does not call the ReadMe API or its developer dashboard.
  • References to files outside the spec are never fetched.

Try it on your next pull request.

Free for public repositories, with unlimited members.

Start free with GitHub