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
|
|
|
|
2018-01-15 01:43:15 +03:00
|
|
|
ADD_CUSTOM_TARGET(doc
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/admin ${CMAKE_CURRENT_BINARY_DIR}/admin
|
2018-02-12 21:51:02 +03:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/develop ${CMAKE_CURRENT_BINARY_DIR}/develop
|
2018-03-19 19:10:22 +03:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/api ${CMAKE_CURRENT_BINARY_DIR}/api
|
2018-01-15 01:43:15 +03:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/index.md ${CMAKE_CURRENT_BINARY_DIR}/index.md
|
2018-08-24 00:12:10 +03:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/extra.css ${CMAKE_CURRENT_BINARY_DIR}/extra.css
|
2018-01-15 01:43:15 +03:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bash2md.sh ${PROJECT_SOURCE_DIR}/vagrant/Install-on-Centos-7.sh ${CMAKE_CURRENT_BINARY_DIR}/appendix/Install-on-Centos-7.md
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bash2md.sh ${PROJECT_SOURCE_DIR}/vagrant/Install-on-Ubuntu-16.sh ${CMAKE_CURRENT_BINARY_DIR}/appendix/Install-on-Ubuntu-16.md
|
|
|
|
COMMAND mkdocs build -d ${CMAKE_CURRENT_BINARY_DIR}/../site-html -f ${CMAKE_CURRENT_BINARY_DIR}/../mkdocs.yml
|
|
|
|
)
|
2017-06-25 18:18:21 +03:00
|
|
|
|
2016-06-07 01:17:15 +03:00
|
|
|
|