Repository navigation
Fix empty class and namespace pages with newer Doxygen - #168
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.xmlonly defines the navigation tree. Doxygen 1.9.8 fills in the rest of the layout from its defaults. Doxygen 1.15.0, whichubuntu-latestnow ships and which built the published site, does not, and renders those pages with an empty content area.Fix
At configure time,
docs/CMakeLists.txtrunsdoxygen -lwith the installed Doxygen to get its default layout, replaces itsnavindexelement with the one fromdocs/DoxygenLayout.xml, and writes the result to the build directory.LAYOUT_FILEpoints there. The layout always matches the Doxygen in use, and there is still no full dump in the repository tied to one version.Testing
navindexand identical to ours inside it;mrmd::actionandVelocityVerletpages have their content; navigation tree unchanged.🤖 Generated with Claude Code