mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
cmake: added jsdoc target for generating node.js documentation
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
60c9e76bcc
commit
d6f756a174
@ -100,6 +100,22 @@ if (BUILDDOC)
|
||||
COMMENT "Generating API documentation with Sphinx" VERBATIM
|
||||
)
|
||||
endif()
|
||||
# check if Yuidoc is installed and add target for API documentation
|
||||
find_package(Yuidoc)
|
||||
if(YUIDOC_FOUND)
|
||||
# node required for Yuidoc documentation
|
||||
find_package(node)
|
||||
set(NODE_PATH "/usr/local/lib/node_modules" CACHE PATH "Path to node modules")
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxy/node ${CMAKE_CURRENT_BINARY_DIR})
|
||||
add_custom_target(jsdoc
|
||||
${NODE_EXECUTABLE} docgen -m upm -i xml
|
||||
COMMAND ${YUIDOC_EXECUTABLE} -C --no-sort --config generators/yuidoc/conf.json -o html/node jsdoc/yuidoc/upm
|
||||
COMMAND ${NODE_EXECUTABLE} tolower -i html/node
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "Generating API documentation with Yuidoc" VERBATIM
|
||||
)
|
||||
add_dependencies(jsdoc doc)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (IPK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user