-
Notifications
You must be signed in to change notification settings - Fork 972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation issues when upgrading to Doxygen 1.9.8 #1563
Comments
As of Doxygen 1.8.19 (specifically, doxygen/doxygen@327423e), the first line of a comment is no longer automatically extracted as a brief description unless we enable the JAVADOC_AUTOBRIEF setting. See https://www.doxygen.nl/manual/config.html#cfg_javadoc_autobrief: > If the `JAVADOC_AUTOBRIEF` tag is set to `YES` then doxygen will > interpret the first line (until the first dot) of a Javadoc-style > comment as the brief description. If set to `NO`, the Javadoc-style > will behave just like regular Qt-style comments (thus requiring an > explicit @brief command for a brief description.) Fixes #1563.
Between Doxygen 1.8.17 and Doxygen 1.9.8, the top-level "modules" tab type in the Doxygen layout has changed such that our "API Documentation" section is no longer generated and is instead considered of the type "topics". Update our layout XML to reflect this change and restore this critical section of the documentation. Fixes #1563.
As commented in #1564 (comment), I'm seeing incorrectly extracted brief descriptions in newer versions of Doxygen (e.g. 1.10.0) even when we're using the explicit pico-sdk/src/rp2_common/hardware_spi/include/hardware/spi.h Lines 100 to 103 in 6a7db34
|
In the short term, maybe it's worth defining what version of Doxygen is supported and we advise using that. I believe the latest version that behaves the way we expect is 1.8.17 (before the changes to brief description extraction)? |
See #1660. |
Hi, |
It's not so much a lack of backwards compatibility in the XML layout, as in the parser. Layout that parsed just fine with older versions of the library don't parse correctly with newer versions which seem to be a lot stricter in what it regards as valid markup. |
this is likely fixed with the latest sdk release |
The documentation for this SDK builds fine with Doxygen 1.8.17 (as indicated by the comment in the
DoxygenLayout.xml
) but has at least two issues when upgrading to the latest version of Doxygen: 1.9.8, released on 25 Aug 2023.The "API Documentation" tab is missing from the main menu and no
modules.html
is outputUsing the latest default
DoxygenLayout.xml
produced by Doxygen 1.9.8'sdoxygen -l
restores the contents of the oldmodules.html
but now refers to it as "Topics" instead. Updating ourDoxygenLayout.xml
restores the previous page (albeit under a new URL):Brief descriptions are no longer extracted for most modules by default
The latter can be fixed by adding
JAVADOC_AUTOBRIEF = YES
to theDoxyfile
to opt into the following functionality:Alternatively, we may need to switch to using explicit
@brief
commands to separate brief descriptions from detailed ones.The text was updated successfully, but these errors were encountered: