doc: doxygen: provide a way to override configs locally
This allows specifying the environment variable ZEPHYR_DOXYGEN_OVERLAY pointing to a overlay file for doxygen to override configs in the base zephyr.doxyfile.in for local document builds. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
5ce7462dcc
commit
bd2fc8009b
2 changed files with 12 additions and 0 deletions
|
@ -47,6 +47,16 @@ set(SPHINX_ENV
|
||||||
DOT_EXECUTABLE=${DOXYGEN_DOT_EXECUTABLE}
|
DOT_EXECUTABLE=${DOXYGEN_DOT_EXECUTABLE}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(DEFINED ENV{ZEPHYR_DOXYGEN_OVERLAY})
|
||||||
|
if(EXISTS $ENV{ZEPHYR_DOXYGEN_OVERLAY})
|
||||||
|
set(INCLUDE_CUSTOM_FILE "@INCLUDE = $ENV{ZEPHYR_DOXYGEN_OVERLAY}")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Zephyr Doxygen overlay $ENV{ZEPHYR_DOXYGEN_OVERLAY} does not exist!")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
set(INCLUDE_CUSTOM_FILE "")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(DOCS_CFG_DIR ${CMAKE_CURRENT_LIST_DIR})
|
set(DOCS_CFG_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||||
set(DOCS_DOCTREE_DIR ${CMAKE_CURRENT_BINARY_DIR}/doctrees)
|
set(DOCS_DOCTREE_DIR ${CMAKE_CURRENT_BINARY_DIR}/doctrees)
|
||||||
set(DOCS_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
set(DOCS_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
|
@ -2816,3 +2816,5 @@ GENERATE_LEGEND = YES
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
|
|
||||||
DOT_CLEANUP = YES
|
DOT_CLEANUP = YES
|
||||||
|
|
||||||
|
@INCLUDE_CUSTOM_FILE@
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue