From 236f78da0aa51089796bea2f43e5c418a908cd19 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Mon, 25 Nov 2013 17:36:56 +0000 Subject: [PATCH] change generation of header and footer git-svn-id: https://svn.dealii.org/trunk@31798 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/doxygen/CMakeLists.txt | 27 ++++++++++++++--------- deal.II/doc/doxygen/footer.html | 11 --------- deal.II/doc/doxygen/header.html.in | 20 ----------------- deal.II/doc/doxygen/scripts/mod_footer.pl | 0 4 files changed, 16 insertions(+), 42 deletions(-) delete mode 100644 deal.II/doc/doxygen/footer.html delete mode 100644 deal.II/doc/doxygen/header.html.in create mode 100644 deal.II/doc/doxygen/scripts/mod_footer.pl 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 -- 2.39.5