Skip to content

Fix broken Drivers JavaDoc nav link - #91

Merged
FDelporte merged 1 commit into
mainfrom
fix-drivers-javadoc-nav
Jul 2, 2026
Merged

Fix broken Drivers JavaDoc nav link#91
FDelporte merged 1 commit into
mainfrom
fix-drivers-javadoc-nav

Conversation

@FDelporte

Copy link
Copy Markdown
Member

Summary

The Drivers JavaDoc entry in the sidebar nav rendered as an empty anchor (<a href="">, i.e. <>).

Root cause: the learn theme's menu.html only honors the externalUrl front-matter param for section pages (line 116). Leaf pages fall back to <a href="{{ .RelPermalink }}"> (line 152), which is empty here because the page uses build.render: never.

Fix: convert the leaf page to a section by renaming content/drivers/drivers-javadoc.mdcontent/drivers/drivers-javadoc/_index.md, matching the working "Core and Plugins JavaDoc" entry (content/api-javadoc/_index.md). No content or theme changes.

Test plan

  • hugo builds clean; the rendered nav now emits <a href="https://apidia.net/mvn/com.pi4j/pi4j-drivers/" target="_blank" rel="noopener">.

🤖 Generated with Claude Code

The Drivers JavaDoc entry rendered as an empty anchor (<a href="">) in
the sidebar nav. The learn theme's menu partial only honors the
externalUrl front-matter param for section pages (menu.html line 116);
leaf pages fall back to <a href="{{ .RelPermalink }}"> (line 152), which
is empty here because the page uses build.render: never.

Convert the leaf page to a section _index.md, matching the working
"Core and Plugins JavaDoc" entry (content/api-javadoc/_index.md), so the
externalUrl is honored and the link points to the JavaDoc site.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 2, 2026 08:47
@FDelporte
FDelporte merged commit fac701e into main Jul 2, 2026
1 check passed
@FDelporte
FDelporte deleted the fix-drivers-javadoc-nav branch July 2, 2026 08:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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