Skip to content

Validate generated Antora page titles - #392

Merged
vharseko merged 2 commits into
OpenIdentityPlatform:masterfrom
maximthomas:features/validate-antora-page-titles
Nov 28, 2026
Merged

vharseko merged 2 commits into
OpenIdentityPlatform:masterfrom
maximthomas:features/validate-antora-page-titles

Conversation

@maximthomas

Copy link
Copy Markdown
Contributor

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, OpenAM #1259, OpenIDM #281, OpenDJ #1342.

Detect the document header in the parsed AsciiDoc tree, as in OpenDJ a0c6b085f26361094b4464384953576892823197.
@maximthomas maximthomas added enhancement documentation Documentation and Javadoc changes tests Test code changes java Pull requests that update java code labels Nov 28, 2026
@maximthomas
maximthomas requested a review from vharseko November 28, 2026 12:46
Comment on lines +58 to +59
Options siteHeader = Options.builder().safe(SafeMode.SAFE)
.attributes(Map.of("env-site", "")).parseHeaderOnly(true).build();
@vharseko
vharseko merged commit a1dad40 into OpenIdentityPlatform:master Nov 28, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation and Javadoc changes enhancement java Pull requests that update java code tests Test code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants