From: kanschat Date: Mon, 25 Nov 2013 17:36:56 +0000 (+0000) Subject: change generation of header and footer X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4445f02597a444ff4f1b7e88c6117663de58b49a;p=dealii-svn.git change generation of header and footer git-svn-id: https://svn.dealii.org/trunk@31798 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/doxygen/CMakeLists.txt b/deal.II/doc/doxygen/CMakeLists.txt index b7e726df44..56723a24cd 100644 --- a/deal.II/doc/doxygen/CMakeLists.txt +++ b/deal.II/doc/doxygen/CMakeLists.txt @@ -35,23 +35,26 @@ CONFIGURE_FILE( ${CMAKE_CURRENT_BINARY_DIR}/options.dox ) -CONFIGURE_FILE( - ${CMAKE_CURRENT_SOURCE_DIR}/header.html.in - ${CMAKE_CURRENT_BINARY_DIR}/header.html - ) - -CONFIGURE_FILE( - ${CMAKE_CURRENT_SOURCE_DIR}/footer.html - ${CMAKE_CURRENT_BINARY_DIR}/footer.html - COPYONLY - ) - CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/deal.css ${CMAKE_CURRENT_BINARY_DIR}/deal.II/deal.css COPYONLY ) +# +# Generate header, footer and style files for doxygen +# +ADD_CUSTOM_COMMAND( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/header.html + ${CMAKE_CURRENT_BINARY_DIR}/footer.html + ${CMAKE_CURRENT_BINARY_DIR}/style.css + COMMAND ${DOXYGEN_EXECUTABLE} -w html header.html footer.html style.css options.dox + COMMAND ${PERL_EXECUTABLE} -pi~ ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/mod_header.pl header.html + COMMAND ${PERL_EXECUTABLE} -pi~ ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/mod_footer.pl footer.html + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/options.dox + ) + # # Finalize the doxygen configuration: # @@ -102,6 +105,8 @@ ADD_CUSTOM_COMMAND( tutorial images ${CMAKE_CURRENT_BINARY_DIR}/options.dox + ${CMAKE_CURRENT_BINARY_DIR}/header.html + ${CMAKE_CURRENT_BINARY_DIR}/footer.html ${_doxygen_input} COMMENT "Generating documentation via doxygen. This may take a _really_ long time..." VERBATIM diff --git a/deal.II/doc/doxygen/footer.html b/deal.II/doc/doxygen/footer.html deleted file mode 100644 index de1963a514..0000000000 --- a/deal.II/doc/doxygen/footer.html +++ /dev/null @@ -1,11 +0,0 @@ -
-
- - deal.II - documentation generated on $datetime by - doxygen - $doxygenversion - -
- - diff --git a/deal.II/doc/doxygen/header.html.in b/deal.II/doc/doxygen/header.html.in deleted file mode 100644 index 3c95a1d965..0000000000 --- a/deal.II/doc/doxygen/header.html.in +++ /dev/null @@ -1,20 +0,0 @@ - - - - - $title - - - - - - - - - - - - - - - diff --git a/deal.II/doc/doxygen/scripts/mod_footer.pl b/deal.II/doc/doxygen/scripts/mod_footer.pl new file mode 100644 index 0000000000..e69de29bb2