Skip to content

Fix empty class and namespace pages with newer Doxygen - #168

Merged
XzzX merged 1 commit into
mainfrom
docs/fix-empty-api-pages
Nov 19, 2026
Merged

XzzX merged 1 commit into
mainfrom
docs/fix-empty-api-pages

Conversation

@XzzX

@XzzX XzzX commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Problem

Class, namespace and file pages on the published docs are empty, e.g. https://xzzx.github.io/mrmd/namespacemrmd_1_1action.html. Index pages and the narrative pages are fine.

docs/DoxygenLayout.xml only defines the navigation tree. Doxygen 1.9.8 fills in the rest of the layout from its defaults. Doxygen 1.15.0, which ubuntu-latest now ships and which built the published site, does not, and renders those pages with an empty content area.

Fix

At configure time, docs/CMakeLists.txt runs doxygen -l with the installed Doxygen to get its default layout, replaces its navindex element with the one from docs/DoxygenLayout.xml, and writes the result to the build directory. LAYOUT_FILE points there. The layout always matches the Doxygen in use, and there is still no full dump in the repository tied to one version.

Testing

  • Doxygen 1.9.8: docs build with zero warnings; the generated layout is identical to the default outside navindex and identical to ours inside it; mrmd::action and VelocityVerlet pages have their content; navigation tree unchanged.
  • Not tested locally with 1.15. This PR's DOCS run builds with 1.15. Please check the uploaded pages artifact for a class or namespace page before merging.

🤖 Generated with Claude Code

docs/DoxygenLayout.xml only defines the navigation tree. Doxygen 1.9.8 fills
in the missing parts from its defaults, but 1.15, which ubuntu-latest now
ships and which builds the published docs, renders class, namespace and file
pages with an empty content area.

Generate the layout at configure time instead: take the default layout of the
installed Doxygen (`doxygen -l`) and splice in the navindex element from
docs/DoxygenLayout.xml. The layout then always matches the Doxygen in use,
without checking in a full dump that is tied to one version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@XzzX
XzzX enabled auto-merge November 19, 2026 08:39
@XzzX
XzzX merged commit 8e07a80 into main Nov 19, 2026
22 checks passed
@XzzX
XzzX deleted the docs/fix-empty-api-pages branch November 19, 2026 08:44
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.

1 participant