2016-05-01 23:45:54 +03:00
|
|
|
# Auto-generated vagrant install documentation
|
|
|
|
|
|
|
|
|
2018-01-15 01:43:15 +03:00
|
|
|
# build the actual documentation
|
2016-05-01 23:45:54 +03:00
|
|
|
|
2018-01-15 01:43:15 +03:00
|
|
|
configure_file(mkdocs.yml ../mkdocs.yml)
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/appendix)
|
2016-05-01 23:45:54 +03:00
|
|
|
|
2020-04-26 15:17:21 +03:00
|
|
|
set (DOC_SOURCES
|
|
|
|
admin
|
|
|
|
develop
|
|
|
|
api
|
2021-10-12 22:25:13 +03:00
|
|
|
customize
|
2020-04-26 15:17:21 +03:00
|
|
|
index.md
|
|
|
|
extra.css
|
|
|
|
styles.css
|
|
|
|
)
|
|
|
|
|
|
|
|
foreach (src ${DOC_SOURCES})
|
|
|
|
execute_process(
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${CMAKE_CURRENT_BINARY_DIR}/${src}
|
|
|
|
)
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
ADD_CUSTOM_TARGET(doc
|
2020-05-07 01:36:13 +03:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bash2md.sh ${PROJECT_SOURCE_DIR}/vagrant/Install-on-Ubuntu-20.sh ${CMAKE_CURRENT_BINARY_DIR}/appendix/Install-on-Ubuntu-20.md
|
2022-05-02 19:16:08 +03:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bash2md.sh ${PROJECT_SOURCE_DIR}/vagrant/Install-on-Ubuntu-22.sh ${CMAKE_CURRENT_BINARY_DIR}/appendix/Install-on-Ubuntu-22.md
|
2021-08-16 12:48:25 +03:00
|
|
|
COMMAND PYTHONPATH=${PROJECT_SOURCE_DIR} mkdocs build -d ${CMAKE_CURRENT_BINARY_DIR}/../site-html -f ${CMAKE_CURRENT_BINARY_DIR}/../mkdocs.yml
|
2018-01-15 01:43:15 +03:00
|
|
|
)
|
2017-06-25 18:18:21 +03:00
|
|
|
|
2021-08-16 12:48:25 +03:00
|
|
|
ADD_CUSTOM_TARGET(serve-doc
|
|
|
|
COMMAND PYTHONPATH=${PROJECT_SOURCE_DIR} mkdocs serve
|
|
|
|
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
|
|
|
|
)
|