File tree 3 files changed +13
-3
lines changed
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)
55
55
set (doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR} /Doxyfile.in)
56
56
set (doxyfile ${CMAKE_CURRENT_BINARY_DIR} /Doxyfile)
57
57
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
+
58
67
if (PICO_PLATFORM STREQUAL "rp2040" )
59
68
set (PICO_DOXYGEN_TAG "(RP2040)" )
60
69
elseif (PICO_PLATFORM STREQUAL "rp2350-arm-s" OR PICO_PLATFORM STREQUAL "rp2350-riscv" )
61
70
set (PICO_DOXYGEN_TAG "(RP2350)" )
62
71
endif ()
72
+ configure_file (${doxylayout_in} ${doxylayout} @ONLY)
63
73
configure_file (${doxyfile_in} ${doxyfile} @ONLY)
64
74
65
75
add_custom_target (docs
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ FILE_PATTERNS = *.h \
17
17
*.md
18
18
19
19
USE_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
21
21
HTML_FOOTER = @PROJECT_SOURCE_DIR@/docs/footer.html
22
22
HTML_HEADER = @PROJECT_SOURCE_DIR@/docs/header.html
23
23
@@ -65,4 +65,4 @@ PREDEFINED = __not_in_flash_func(x)= \
65
65
DOXYGEN_GENERATION= \
66
66
@DOXY_PREDEFINED@
67
67
68
- ENABLED_SECTIONS = @DOXY_ENABLED_SECTIONS@
68
+ ENABLED_SECTIONS = @DOXY_ENABLED_SECTIONS@
Original file line number Diff line number Diff line change 3
3
<!-- Navigation index tabs for HTML output -->
4
4
<navindex>
5
5
<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"/>
7
7
<tab type="user" url="@ref examples_page" visible="yes" title="Examples" intro="Links to SDK examples"/>
8
8
<tab type="usergroup" url="@ref weblinks_page" visible="yes" title="Additional Documentation" intro="Links to datasheets and documentation">
9
9
<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