Repository navigation
Conversation
maximthomas
left a comment
There was a problem hiding this comment.
praise: The title scan reports both affected paths together on the base revision and passes all 163 generated pages at HEAD.
issue (blocking): Preserve the two published heading fragments when promoting the headings to document titles.
chap-first-steps.adoc:18, quick-start-guide.adoc:17
Antora generates the clickable heading IDs _get_started_with_openam and _quick_start_guide on the pinned base. The new :table-caption!: entries cause the generator to offset the top heading into a document title, leaving both fragment URLs without a target at HEAD. Add a compatibility anchor for the old ID in each existing env-site block and assert that both IDs occur once in the rendered articles alongside the corrected titles. An independent Antora build confirmed that these aliases preserve all 29 previous article IDs. published Getting Started fragment, published Quick Start fragment.
Fragment ID Live Base HEAD HEAD with alias
_get_started_with_openam 1 1 0 1
_quick_start_guide 1 1 0 1
suggestion (non-blocking): Check the header of the original parse when a page declares :title:.
The second parse unsets title, which can change whether the header is present. A fixture with an ifdef::title[] heading publishes a title in Antora and fails the gate. An ifndef::title[] heading gives the inverse result. Check for a real header and a nonblank title on the original parse. These fixtures cover future authoring syntax.
Heading condition Antora document title Gate result
ifdef::title[] Browser Title Rejected
ifndef::title[] None Accepted
|
@maximthomas I addressed both findings in
All seven |
maximthomas
left a comment
There was a problem hiding this comment.
praise: Both articles now render their corrected titles and all 29 previously published article IDs.
## 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).
Summary
_get_started_with_openamand_quick_start_guide.Verification
AntoraPageTitlesITtests with Maven on JDK 11. The tests passed, covering the scan of 163 generated pages, title overrides with conditional or missing headers, and both restored anchors.