From: Matthias Maier Date: Wed, 13 May 2020 16:02:38 +0000 (-0500) Subject: Documentation: Treat code gallery projects as examples X-Git-Tag: v9.3.0-rc1~1644^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f75eccf6bf870fe50aec2137312935f6a1672e7;p=dealii.git Documentation: Treat code gallery projects as examples Installing the code gallery projects as part of the html documentation is not ideal. Let us install the code gallery projects as a sub directory under the EXAMPLES_RELDIR instead: examples/code-gallery/* examples/step-* --- diff --git a/doc/doxygen/code-gallery/CMakeLists.txt b/doc/doxygen/code-gallery/CMakeLists.txt index 845e04546d..acccc68340 100644 --- a/doc/doxygen/code-gallery/CMakeLists.txt +++ b/doc/doxygen/code-gallery/CMakeLists.txt @@ -136,20 +136,19 @@ IF (EXISTS ${DEAL_II_CODE_GALLERY_DIRECTORY}/README.md) # Copy files of interest (non-metadata) to the build directory # so we can link to them, and schedule them for installation FILE(COPY ${DEAL_II_CODE_GALLERY_DIRECTORY}/${_step} - DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ - PATTERN REGEX "doc/tooltip|doc/dependencies|doc/builds-on" EXCLUDE) + DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ + PATTERN REGEX "doc/tooltip|doc/dependencies|doc/builds-on" EXCLUDE + ) INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_step} - DESTINATION ${DEAL_II_DOCHTML_RELDIR}/doxygen/code-gallery - COMPONENT documentation - ) + DESTINATION ${DEAL_II_EXAMPLES_RELDIR}/code-gallery + COMPONENT examples + ) # Create a target for this program and add it to the top-level # target of this directory ADD_CUSTOM_TARGET(code-gallery_${_step} - DEPENDS - ${CMAKE_CURRENT_BINARY_DIR}/${_step}.h - COMMENT - "Building doxygen input file for code gallery program <${_step}>" + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_step}.h + COMMENT "Building doxygen input file for code gallery program <${_step}>" ) ADD_DEPENDENCIES(code-gallery code-gallery_${_step})