Skip to content

Fix broken struct/class API pages and doc links#272

Open
cconlon wants to merge 1 commit into
wolfSSL:masterfrom
cconlon:genClasses
Open

Fix broken struct/class API pages and doc links#272
cconlon wants to merge 1 commit into
wolfSSL:masterfrom
cconlon:genClasses

Conversation

@cconlon

@cconlon cconlon commented Jul 10, 2026

Copy link
Copy Markdown
Member

This PR fixes broken links in the generated API documentation for wolfSSL, wolfMQTT, wolfTPM, and wolfHSM.

  • Struct/class pages were never generated: doxybook.cfg omitted "classes" from foldersToGenerate, so links to
    struct/class pages 404'd.
  • Intra-page and struct links didn't resolve: the Functions table (and struct references) used doxybook's dash anchors
    and leading-slash .md paths, which mkdocs doesn't rewrite to the built .html pages.

Changes

  • Add "classes" to foldersToGenerate (wolfMQTT, wolfTPM, wolfHSM).
  • In html-prep: copy Classes/ pages into the site, strip leading slashes, and convert dash anchors to the underscore ids mkdocs generates.
  • Convert wolfMQTT to the Classes/ subfolder layout for consistency.

Found when analyzing web server 404 logs.

Copilot AI review requested due to automatic review settings July 10, 2026 20:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.

This PR fixes broken API doc links by ensuring struct/class (“Classes”) pages are generated and by rewriting doxybook-generated Markdown links/anchors into forms that MkDocs correctly resolves.

Changes:

  • Add "classes" to foldersToGenerate for wolfMQTT, wolfTPM, and wolfHSM.
  • Update html-prep steps to copy Classes/ docs into the site output and rewrite links/anchors for MkDocs compatibility.
  • Normalize wolfMQTT docs output to a Classes/ subfolder layout similar to the other projects.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
wolfTPM/doxybook.cfg Enables generation of Classes/ struct/class pages.
wolfTPM/Makefile Copies Classes/ into site output and rewrites Markdown links/anchors.
wolfSSL/Makefile Rewrites leading-slash Markdown links so MkDocs resolves them.
wolfMQTT/doxybook.cfg Enables generation of Classes/ struct/class pages.
wolfMQTT/Makefile Copies Classes/ into site output and rewrites Markdown links/anchors (plus layout alignment).
wolfHSM/doxybook.cfg Enables generation of Classes/ struct/class pages.
wolfHSM/Makefile Copies Classes/ into site output and rewrites Markdown links/anchors.

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

Comment thread wolfTPM/Makefile
Comment thread wolfHSM/Makefile
Comment thread wolfMQTT/Makefile
Comment thread wolfTPM/Makefile
Comment thread wolfMQTT/Makefile
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.

3 participants