Merge branch 'main' into feature/singlemarkdown
This commit is contained in:
@@ -12,16 +12,6 @@ function(setup_sphinx_environment)
|
|||||||
message(FATAL_ERROR "sphinx-build not found. Please install Sphinx.")
|
message(FATAL_ERROR "sphinx-build not found. Please install Sphinx.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Get Sphinx version
|
|
||||||
execute_process(
|
|
||||||
COMMAND ${SPHINX_EXECUTABLE} --version
|
|
||||||
OUTPUT_VARIABLE SPHINX_VERSION_OUTPUT
|
|
||||||
ERROR_VARIABLE SPHINX_VERSION_OUTPUT
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
||||||
)
|
|
||||||
message(STATUS "Found Sphinx: ${SPHINX_EXECUTABLE}")
|
|
||||||
message(STATUS "${SPHINX_VERSION_OUTPUT}")
|
|
||||||
|
|
||||||
# Export to parent scope
|
# Export to parent scope
|
||||||
set(SPHINX_EXECUTABLE "${SPHINX_EXECUTABLE}" PARENT_SCOPE)
|
set(SPHINX_EXECUTABLE "${SPHINX_EXECUTABLE}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ function(add_sphinx_builder builder_name)
|
|||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Build all formats
|
|
||||||
add_custom_target(docs ALL)
|
|
||||||
add_dependencies(docs html markdown singlemarkdown)
|
|
||||||
# Add builder targets
|
# Add builder targets
|
||||||
add_sphinx_builder(html)
|
add_sphinx_builder(html)
|
||||||
add_sphinx_builder(markdown)
|
add_sphinx_builder(markdown)
|
||||||
|
|||||||
Reference in New Issue
Block a user