summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
index b20819001..2d8abc8cf 100644
--- a/docs/CMakeLists.txt
+++ b/docs/CMakeLists.txt
@@ -37,6 +37,13 @@ add_custom_target(
COMMENT "Generating Sphinx Api docs"
)
+add_custom_command(
+ TARGET docs
+ POST_BUILD
+ COMMAND
+ ${CMAKE_COMMAND} -E cmake_echo_color --cyan "Preview docs in browser: file://localhost${SPHINX_OUTPUT_DIR}/index.html"
+)
+
set(SPHINX_GH_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/sphinx-gh)
add_custom_target(
docs-gh ALL
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback