]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Documentation: Treat code gallery projects as examples 10192/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 13 May 2020 16:02:38 +0000 (11:02 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 13 May 2020 17:03:41 +0000 (12:03 -0500)
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-*

doc/doxygen/code-gallery/CMakeLists.txt

index 845e04546d816cdb6ed1328fb713baa67aa1a446..acccc6834000a965c27b5776b38b95d82ec30c5d 100644 (file)
@@ -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})
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.