Skip to content

Validate generated Antora page titles - #201

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:docs/validate-antora-page-titles
Nov 28, 2026
Merged

vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:docs/validate-antora-page-titles

Conversation

@vharseko

Copy link
Copy Markdown
Member

Summary

  • Validate the document title of every generated Antora page during Maven verification. Resolve headers supplied by ROOT partials and report the path of each untitled page.
  • Restore the Antora titles of Logging Events in OpenIG and Getting Started while preserving their chapter anchors.
  • Follow Document phpLDAPadmin Docker setup and delegated access OpenDJ#1342.

Verification

  • Ran the title integration test on JDK 11 and 27 against all 49 generated pages.
  • Confirmed that the test rejects nested pages with only a section heading or a title attribute. Verified both restored headings and chapter anchors in Antora HTML.

@vharseko
vharseko requested a review from maximthomas November 28, 2026 10:29
@vharseko vharseko added bug documentation Improvements or additions to documentation java Pull requests that update Java code tests Adds or updates tests labels Nov 28, 2026

@maximthomas maximthomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: The title gate distinguishes a document header from a section heading, accepts valid title overrides, and identifies both previously untitled pages when run against the pinned base.

@vharseko
vharseko merged commit f784c28 into OpenIdentityPlatform:master Nov 28, 2026
15 checks passed
@vharseko
vharseko deleted the docs/validate-antora-page-titles branch November 28, 2026 11:35
vharseko pushed a commit to OpenIdentityPlatform/commons that referenced this pull request Nov 28, 2026
## Summary

- Validate generated AsciiDoc page titles at the end of the `antora`
goal and report all pages missing a document title.
- Parse headers with `env-site` set, resolve `ROOT:partial$` includes,
and preserve `:title:` overrides when a document header is present.
- Cover pages with only a section heading or title attribute, plus a
header conditional on `:title:`.

## Testing

- `mvn -o -pl commons/doc-maven-plugin -am -Dmaven.javadoc.skip=true
install` passed on JDK 17 with 553 tests.
- Ran Antora generation with the updated plugin against the OpenIG,
OpenAM, OpenIDM, and OpenDJ PR sources. The OpenDJ run used locally
generated man-page partials. [OpenIG
#201](OpenIdentityPlatform/OpenIG#201), [OpenAM
#1259](OpenIdentityPlatform/OpenAM#1259),
[OpenIDM
#281](OpenIdentityPlatform/OpenIDM#281), [OpenDJ
#1342](OpenIdentityPlatform/OpenDJ#1342).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug documentation Improvements or additions to documentation java Pull requests that update Java code tests Adds or updates tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants