Rimfe for Antora and AsciiDoc docs
Antora builds AsciiDoc pages organised in modules, with the component described by antora.yml. Rimfe parses AsciiDoc and detects antora.yml, suggesting the component folder with the adoc extension. It never follows include:: directives, so text in partials and examples is checked in its own file.
Where the docs live
modules/<name>/pages/*.adoc under a component folder that holds antora.yml, with partials/, examples/ and images/ beside the pages.
What Rimfe watches
- Detected by an
antora.ymlfile; its folder is the component root. - Suggested scope: that folder with
.adoc, the fallback extension when no page is found. - Both
.adocand.asciidocare 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.
{ "$schema": "https://rimfe.com/schema/rimfe.json", "docsGlobs": [ "docs/modules/**/*.adoc" ], "docsIgnorePaths": [ "docs/modules/ROOT/partials/**" ], "ignorePaths": [ "src/test/**" ], "codeMappings": [ { "source": "src/main/java/**/ServerConfig.java", "target": "docs/modules/ROOT/pages/configuration.adoc" } ]}Worked example: the code change
A pull request changes src/main/java/com/acme/ServerConfig.java. Nothing in the pull request touches the docs.
- private int port = 8080;+ private int port = 9090;Worked example: the page it makes wrong
docs/modules/ROOT/pages/configuration.adoc still states the old behavior. Rimfe quotes both sides as evidence and suggests this patch.
- By default the service listens on port 8080.+ By default the service listens on port 9090.Limits
include::is never followed; a value defined in an example file is checked there.- Attributes such as
{port}are read as written, not substituted. - Pages from other repositories in a multi-repository playbook are reviewed only in the repository you installed on.
- Navigation files (
nav.adoc) are not patched.
Try it on your next pull request.
Free for public repositories, with unlimited members.
Start free with GitHub