Update site dir

This commit is contained in:
Victor Zverovich 2024-06-29 08:32:24 -07:00
parent 8b1fcf5cc1
commit 0fae326c42

View File

@ -464,12 +464,13 @@ function(add_doc_target)
${CMAKE_COMMAND} ${CMAKE_COMMAND}
-E env PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/support/python -E env PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/support/python
${MKDOCS} build -f ${CMAKE_CURRENT_SOURCE_DIR}/support/mkdocs.yml ${MKDOCS} build -f ${CMAKE_CURRENT_SOURCE_DIR}/support/mkdocs.yml
--site-dir ${CMAKE_CURRENT_BINARY_DIR}/doc/html # MkDocs requires the site dir to be outside of the doc dir.
--site-dir ${CMAKE_CURRENT_BINARY_DIR}/doc-html
--no-directory-urls --no-directory-urls
SOURCES ${sources}) SOURCES ${sources})
include(GNUInstallDirs) include(GNUInstallDirs)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc-html/
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt OPTIONAL) DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt OPTIONAL)
endfunction() endfunction()