Skip to content

CASSANDRA-21448: Fix structural Antora errors in in-tree docs#4877

Open
pmcfadin wants to merge 1 commit into
apache:trunkfrom
pmcfadin:CASSANDRA-21448-trunk
Open

CASSANDRA-21448: Fix structural Antora errors in in-tree docs#4877
pmcfadin wants to merge 1 commit into
apache:trunkfrom
pmcfadin:CASSANDRA-21448-trunk

Conversation

@pmcfadin

Copy link
Copy Markdown
Contributor

Fixes the three structural (non-xref) error classes surfaced by the Antora 3 trial build of the in-tree docs. Child of epic CASSANDRA-21314; together with CASSANDRA-21449 this blocks the Antora 3 reland (CASSANDRA-21315), which is gated on a zero-error build.

What changed

1. Missing data-modeling images (12 image macros, 7 pages)

All 12 referenced files (data_modeling_*.png ×10, Figure_*_data_model.jpg ×2) already exist in doc/modules/cassandra/assets/images/ — nothing was ever lost, so nothing needed restoring from history. The page sources carry a stale images/ path prefix from the original rST→AsciiDoc migration (image::images/foo.png[]), which Antora resolves against the module's image family as assets/images/images/foo.png and fails. The fix strips the prefix. Every image renders again; no figure was removed and no pedagogical content is affected.

2. Level-0 section errors (security.adoc, changes.adoc)

The standalone pages are fine — the errors come from cql_singlefile.adoc, which includes both pages whole, turning their = doctitles into illegal level-0 sections inside the including document. Fixed by adding leveloffset=+1 to the two includes, so the included titles land as == sections — consistent siblings of the singlefile's existing == CQL Syntax / == Terms / == Data Definition. No prose changed; the rendered singlefile now nests "Database Roles" and "CQL Changes" as proper h2 sections.

3. Malformed tables (2 sites)

  • developing/cql/ddl.adoc — the NetworkTopologyStrategy options table declared four columns (cols=",,,") while every row has three cells. Corrected the spec to cols=",,".
  • managing/tools/sstable/sstablemetadata.adoc — the value-explanation table row |Estimated cardinality an estimate of unique values… was missing its cell separator, leaving the 2-column table with an odd cell count. Restored the | between value and explanation.

Table content is unchanged in both.

Verification

Antora 3 trial build (cassandra-website at the Antora 3.1.14 / Node 24 stack commit 897d1a67, JSON logging, ./run.sh website build -e .xref-env -g -u cassandra:../cassandra -b cassandra:trunk), measured with xref-report.sh:

before (trunk 0d87b2d76a) after (this branch)
total error-level entries 33 17
image 12 0
section 2 0
table 2 0
xref 17 17

All 16 structural error entries are gone; the surviving 17 xref entries are byte-identical before and after (zero new errors). These 16 sites are the same population the trial-build log reported as 32 entries — that log carried each message twice. The remaining 17 xref errors are tracked separately (CASSANDRA-21449 and the Phase 4 long-tail under CASSANDRA-21342).

AI-assistance disclosure

This change was prepared with AI assistance (Claude). All edits were validated against a full Antora 3 site build as described above, and the before/after error inventories were diffed mechanically. Per project convention the AI attribution lives in this PR body rather than in commit trailers.

Fix the three structural error classes found by the Antora 3 trial
build (child of CASSANDRA-21314, blocks the Antora 3 reland in
CASSANDRA-21315):

- Strip the stale images/ path prefix from 12 image macros on the
  data-modeling pages. The images all exist in the module's
  assets/images/ family; the rST-migration-era prefix made Antora
  resolve them to assets/images/images/* (24 build errors).
- Add leveloffset=+1 to the security.adoc and changes.adoc includes
  in cql_singlefile.adoc so the included doctitles become level-1
  sections in the include context instead of illegal level-0
  sections (4 build errors).
- Fix two malformed tables: a four-column cols spec on the
  three-column NetworkTopologyStrategy table in ddl.adoc, and a
  missing cell separator in the sstablemetadata.adoc value table
  (4 build errors).

Full Antora 3 trial build before/after: 33 -> 17 error entries; all
12 image, 2 section, and 2 table errors at zero; the 17 surviving
xref messages are byte-identical to the before build (tracked under
CASSANDRA-21449). No visible prose is changed.

 patch by Patrick McFadin; reviewed by TBD for CASSANDRA-21448
@pmcfadin pmcfadin force-pushed the CASSANDRA-21448-trunk branch from 1f93cee to 5d6fd41 Compare June 11, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant