File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,21 @@ if(PICO_BUILD_DOCS)
5555 set (doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR} /Doxyfile.in)
5656 set (doxyfile ${CMAKE_CURRENT_BINARY_DIR} /Doxyfile)
5757
58+ if (DOXYGEN_VERSION VERSION_GREATER_EQUAL "1.9.8" )
59+ # see https://github.com/doxygen/doxygen/issues/10562
60+ set (DOXY_API_DOCS_TAB_TYPE "topics" )
61+ else ()
62+ set (DOXY_API_DOCS_TAB_TYPE "modules" )
63+ endif ()
64+ set (doxylayout_in ${CMAKE_CURRENT_SOURCE_DIR} /DoxygenLayout.xml.in)
65+ set (doxylayout ${CMAKE_CURRENT_BINARY_DIR} /DoxygenLayout.xml)
66+
5867 if (PICO_PLATFORM STREQUAL "rp2040" )
5968 set (PICO_DOXYGEN_TAG "(RP2040)" )
6069 elseif (PICO_PLATFORM STREQUAL "rp2350-arm-s" OR PICO_PLATFORM STREQUAL "rp2350-riscv" )
6170 set (PICO_DOXYGEN_TAG "(RP2350)" )
6271 endif ()
72+ configure_file (${doxylayout_in} ${doxylayout} @ONLY)
6373 configure_file (${doxyfile_in} ${doxyfile} @ONLY)
6474
6575 add_custom_target (docs
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ FILE_PATTERNS = *.h \
1717 *.md
1818
1919USE_MDFILE_AS_MAINPAGE = @PROJECT_SOURCE_DIR@/docs/mainpage.md
20- LAYOUT_FILE = @PROJECT_SOURCE_DIR @/docs/DoxygenLayout.xml
20+ LAYOUT_FILE = @PROJECT_BINARY_DIR @/docs/DoxygenLayout.xml
2121HTML_FOOTER = @PROJECT_SOURCE_DIR@/docs/footer.html
2222HTML_HEADER = @PROJECT_SOURCE_DIR@/docs/header.html
2323
@@ -65,4 +65,4 @@ PREDEFINED = __not_in_flash_func(x)= \
6565 DOXYGEN_GENERATION= \
6666 @DOXY_PREDEFINED@
6767
68- ENABLED_SECTIONS = @DOXY_ENABLED_SECTIONS@
68+ ENABLED_SECTIONS = @DOXY_ENABLED_SECTIONS@
Original file line number Diff line number Diff line change 33 <!-- Navigation index tabs for HTML output -->
44 <navindex>
55 <tab type="mainpage" visible="yes" title="Introduction"></tab>
6- <tab type =" modules " visible =" yes" title =" API Documentation" intro =" These are the libraries supplied in the Raspberry Pi Pico SDK" />
6+ <tab type="@DOXY_API_DOCS_TAB_TYPE@ " visible="yes" title="API Documentation" intro="These are the libraries supplied in the Raspberry Pi Pico SDK"/>
77 <tab type="user" url="@ref examples_page" visible="yes" title="Examples" intro="Links to SDK examples"/>
88 <tab type="usergroup" url="@ref weblinks_page" visible="yes" title="Additional Documentation" intro="Links to datasheets and documentation">
99 <tab type="user" url="https://rptl.io/pico-datasheet" visible="yes" title="Raspberry Pi Pico Datasheet" intro=""/>
You can’t perform that action at this time.
0 commit comments