Skip to content

docs: drop section numbers from the user manual index - #6887

Open
MaxonT wants to merge 3 commits into
apache:masterfrom
MaxonT:contrib/5915-auto
Open

MaxonT wants to merge 3 commits into
apache:masterfrom
MaxonT:contrib/5915-auto

Conversation

@MaxonT

@MaxonT MaxonT commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Section numbers in the JMeter manual's headings are what issue #5915 wants gone, and a patch is attached that takes them out.

Fixes #5915

The "Section Summary" and "Detailed Section List" on the user manual index prefix every entry with a number (1. Getting Started, 3.2.1 Samplers, and so on). As the issue says, these are hard to keep up to date, and they already disagree with each other: the JMS Topic and the programmatic test plan pages are both listed as 11, and the two LDAP pages are 8a and 8b.

This removes the numeric prefix from the 135 link labels in xdocs/usermanual/index.xml. Nothing else changes: every href and anchor is the same, and no line was added or removed. I read the issue's two suggestions (remove the numbers, or number automatically) and took the first. vlsi wrote that the numbers add no value and that he would not mind autonumbering; autonumbering is not in this PR.

Left alone on purpose: the numbered subsection names inside the LDAP tutorial pages, creating-templates.xml and devguide-dashboard.xml. Those are small self-contained write-ups with their own numbering, not the manual index the issue is about. No page of the manual refers to the index numbers (I searched xdocs for "section N" style references and found only an RFC citation).

Checked

  • xmllint --noout xdocs/usermanual/index.xml passes, and a line by line comparison with the previous file shows that every changed line differs only by the removed prefix.
  • ./gradlew :src:dist:processSiteXslt (Gradle 9 on JDK 25 here) builds the site, and the rendered usermanual/index.html has no numbered link labels.

Not run

The full assemble and test tasks, and the repository CI on this head. I only looked at the rendered index page's link text, not at its layout in a browser.

Update after merging master (head aa9f416)

Master gained a numbered entry (5.3 Testing HTTP/2 Services with HttpClient5, from #6930). I merged master into this branch and kept the unnumbered labels, so that entry is unnumbered too. The result equals master except for the removed number prefixes (checked by comparing each changed line). xmllint --noout xdocs/usermanual/index.xml exits 0 on this head. The processSiteXslt run above was on the previous head 949b4f0; I did not rerun it on aa9f416. Repository CI on aa9f416 is still running.

Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
@MaxonT

MaxonT commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Hi @milamberspace, could you please review this when you have a moment?

In short: Drop section numbers from the user manual index.

I think this will be really valuable. You may want to take a look. Thanks!

@vlsi

vlsi commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Does this remove the numbers from all the places? (e.g. from the pages themselves).

For example, https://jmeter.apache.org/usermanual/get-started.html looks numbered.

Can we rather make xdocs/usermanual/index.xml autonumber the sections?

@MaxonT

MaxonT commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

No, this PR only removes the numbers from the link labels in xdocs/usermanual/index.xml. The pages themselves still show numbers, because each one defines its own sect-num entity and uses it in its headings. For example, get-started.xml has <!ENTITY sect-num '1'> and the heading &sect-num;. Getting Started, and a code search finds that entity in 31 files under xdocs/usermanual. I haven't written or tested autonumbering for the index. Should this PR stay limited to the index labels, with the per-page numbers and autonumbering handled in a separate change, or would you prefer it all done here?

Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
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.

Remove section numbering from the manual

2 participants