# Rimfe for Antora and AsciiDoc docs

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

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.yml` file; its folder is the component root.
- Suggested scope: that folder with `.adoc`, the fallback extension when no page is found.
- Both `.adoc` and `.asciidoc` are 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.

```json
{
  "$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.

```diff
- 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.

```diff
- 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.

## Related

- [Java: what Rimfe reads](https://rimfe.com/stacks/java)
- [What is documentation drift](https://rimfe.com/learn/documentation-drift)
- [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)
