Skip to content
Snippets Groups Projects

Fix readthedocs

Merged Lars Krombeen requested to merge fix-readthedocs into master
All threads resolved!
Files
6
+ 1
7
@@ -39,18 +39,12 @@ if(SPHINX_FOUND AND JSONSCHEMA2RST_EXECUTABLE)
set(SPHINX_SOURCE ${CMAKE_CURRENT_BINARY_DIR})
set(SPHINX_BUILD ${CMAKE_CURRENT_BINARY_DIR}/docs/)
configure_file(${CMAKE_CURRENT_LIST_DIR}/index.rst ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
configure_file(${CMAKE_CURRENT_LIST_DIR}/conf.py.in ${CMAKE_CURRENT_BINARY_DIR}/conf.py @ONLY)
add_custom_command(OUTPUT stepdocs_rst
COMMAND ${JSONSCHEMA2RST_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/schemas ${CMAKE_CURRENT_BINARY_DIR}/steps
COMMAND rm ${CMAKE_CURRENT_BINARY_DIR}/steps/index.rst
COMMENT "Generating rst documents from yml descriptions"
)
configure_file(${CMAKE_CURRENT_LIST_DIR}/conf.py ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
add_custom_target(userdoc
COMMAND
${SPHINX_EXECUTABLE} -b html
${SPHINX_SOURCE} ${SPHINX_BUILD}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS stepdocs_rst
COMMENT "Generating user documentation with Sphinx"
)
else()
Loading