Skip to content

Fix: quote doxygen2docusaurus's unquoted Xref href - #27

Merged
bcastets-robotiq merged 1 commit into
mainfrom
fix/doxygen-xref-unquoted-href
Oct 2, 2026
Merged

bcastets-robotiq merged 1 commit into
mainfrom
fix/doxygen-xref-unquoted-href

Conversation

@bcastets-robotiq

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • `npm run build` against current `main` — clean (no broken links)
  • `npm test`

🤖 Generated with Claude Code

@xpack/doxygen2docusaurus's own \deprecated/\todo/\bug/\test renderer
(docxrefsecttype.js) emits its one cross-reference link unquoted —
`<a href=${permalink}>` instead of `<a href="${permalink}">`, the only
spot in the whole package that does this. Harmless on a site with no
spaces in its URLs; every page here lives under a path like "Adaptive
grippers", and an HTML parser ends an unquoted attribute at the first
space — so any page with one of those tags silently truncated its own
Xref link to e.g. `/docs/drivers/Adaptive`, which this build's own
broken-link check then failed on.

Surfaced from PR #26 (bumping external/2f85_cpp), whose Hand-E profile
work is the first doc comment in this repo's dependency graph to use a
`\deprecated` tag — nothing to do with this site's own content, and
latent until then. Added quoteUnquotedAnchorHrefs to
sync-external-docs.js's existing chain of doxygen2docusaurus output
fixups rather than patching node_modules.

Verified with a full npm run build + npm test against current main.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@bcastets-robotiq
bcastets-robotiq merged commit d12fce2 into main Oct 2, 2026
2 checks passed
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