Skip to content

docs: fix malformed and dangling cross-references#4103

Merged
hansu merged 1 commit into
LinuxCNC:masterfrom
grandixximo:docs/fix-dangling-xrefs
Jun 2, 2026
Merged

docs: fix malformed and dangling cross-references#4103
hansu merged 1 commit into
LinuxCNC:masterfrom
grandixximo:docs/fix-dangling-xrefs

Conversation

@grandixximo
Copy link
Copy Markdown
Contributor

Five source-level cross-reference bugs found while auditing the doc links. Independent of the resolver (#4100); these are wrong in the source regardless.

  • qtvcp-widgets.adoc (x2), qtplasmac.adoc: <<id>>[Label] is malformed. The [Label] leaked as literal text after the link instead of being the link text. Fixed to <<id,Label>>.
  • o-code.adoc: <<Numbering>> had no matching anchor (the section's auto id is _numbering), so it rendered as literal [Numbering]. Added an explicit [[ocode:numbering]] anchor, matching the file's convention.
  • pncconf.adoc: <<sub:install:sec:latency-test,...>> used a stale prefix; the real anchor is sec:latency-test.
  • remap.adoc: dropped a commented-out line carrying a dangling <<remap:extracting-words>> ref (a stale duplicate of the line below it), so nobody copies the broken form.

Verified with a full English make htmldocs: checkref reports "all links are good!" and the four rendered links now resolve correctly.

Five source-level xref bugs found while auditing the cross-document
links (independent of the resolver):

- qtvcp-widgets.adoc (x2), qtplasmac.adoc: <<id>>[Label] is malformed;
  the bracket leaked as literal text after the link. Use <<id,Label>>.
- o-code.adoc: <<Numbering>> had no matching anchor (the section's
  auto-id is _numbering), so it rendered as literal [Numbering]. Add an
  explicit [[ocode:numbering]] anchor matching the file convention.
- pncconf.adoc: <<sub:install:sec:latency-test,...>> used a stale prefix;
  the real anchor is sec:latency-test.
- remap.adoc: drop a commented-out line carrying a dangling
  <<remap:extracting-words>> ref, so nobody copies the broken form.
@hansu
Copy link
Copy Markdown
Member

hansu commented Jun 2, 2026

👍

@hansu hansu merged commit 81a2146 into LinuxCNC:master Jun 2, 2026
15 checks passed
@grandixximo grandixximo deleted the docs/fix-dangling-xrefs branch June 2, 2026 06:57
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.

2 participants