diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 62ed98f020..b0ac11fcd1 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -129,6 +129,14 @@ if(BUILD_DOCS AND DOXYGEN_FOUND) set(CMAKE_DOXYGEN_MAIN_REFERENCE "${refs_main}") set(CMAKE_DOXYGEN_EXTRA_REFERENCE "${refs_extra}") set(CMAKE_EXTRA_BIB_FILES "${bibfile} ${paths_bib}") + + list(APPEND CMAKE_DOXYGEN_HTML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/opencv.ico") + list(APPEND CMAKE_DOXYGEN_HTML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/pattern.png") + list(APPEND CMAKE_DOXYGEN_HTML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/acircles_pattern.png") + list(APPEND CMAKE_DOXYGEN_HTML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/bodybg.png") + list(APPEND CMAKE_DOXYGEN_HTML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/mymath.sty") + string(REPLACE ";" " \\\n" CMAKE_DOXYGEN_HTML_FILES "${CMAKE_DOXYGEN_HTML_FILES}") + if(PLANTUML_JAR) set(CMAKE_DOXYGEN_PLANTUML_SUPPORT "PLANTUML_JAR_PATH = ${PLANTUML_JAR}\n") else() @@ -138,13 +146,8 @@ if(BUILD_DOCS AND DOXYGEN_FOUND) # writing file configure_file(Doxyfile.in ${doxyfile} @ONLY) configure_file(root.markdown.in ${rootfile} @ONLY) - configure_file(mymath.sty "${CMAKE_DOXYGEN_OUTPUT_PATH}/html/mymath.sty" @ONLY) - configure_file(mymath.sty "${CMAKE_DOXYGEN_OUTPUT_PATH}/latex/mymath.sty" @ONLY) - # TODO: do not store downloadable samples, but give github link instead add_custom_target(doxygen - COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/pattern.png" "${CMAKE_DOXYGEN_OUTPUT_PATH}/html" - COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/acircles_pattern.png" "${CMAKE_DOXYGEN_OUTPUT_PATH}/html" COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile} DEPENDS ${doxyfile} ${rootfile} ${bibfile} ${deps} ) diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index 24ef50c416..05cc2735b3 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -125,11 +125,11 @@ IGNORE_PREFIX = GENERATE_HTML = YES HTML_OUTPUT = html HTML_FILE_EXTENSION = .html -HTML_HEADER = -HTML_FOOTER = +HTML_HEADER = @CMAKE_CURRENT_SOURCE_DIR@/header.html +HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/footer.html HTML_STYLESHEET = -HTML_EXTRA_STYLESHEET = -HTML_EXTRA_FILES = +HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/stylesheet.css +HTML_EXTRA_FILES = @CMAKE_DOXYGEN_HTML_FILES@ HTML_COLORSTYLE_HUE = 220 HTML_COLORSTYLE_SAT = 100 HTML_COLORSTYLE_GAMMA = 80 diff --git a/doc/bodybg.png b/doc/bodybg.png new file mode 100644 index 0000000000..ebe92f6691 Binary files /dev/null and b/doc/bodybg.png differ diff --git a/doc/footer.html b/doc/footer.html new file mode 100644 index 0000000000..e9a2ed7d93 --- /dev/null +++ b/doc/footer.html @@ -0,0 +1,21 @@ + + + + + + + + + + diff --git a/doc/header.html b/doc/header.html new file mode 100644 index 0000000000..55f2ea171c --- /dev/null +++ b/doc/header.html @@ -0,0 +1,56 @@ + + + + + + + +$projectname: $title +$title + + + + +$treeview +$search +$mathjax + +$extrastylesheet + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + +
+
$projectname +  $projectnumber +
+
$projectbrief
+
+
$projectbrief
+
$searchbox
+
+ + diff --git a/doc/stylesheet.css b/doc/stylesheet.css new file mode 100644 index 0000000000..7e827eeba7 --- /dev/null +++ b/doc/stylesheet.css @@ -0,0 +1,33 @@ +/* The standard CSS for doxygen 1.8.6 */ + +body, table, div, p, dl { + font: 400 14px/22px Helvetica, 'Segoe UI', Arial, freesans, sans-serif; + word-wrap: break-word; +} + +code { + font: 12px Consolas, "Liberation Mono", Courier, monospace; + font-size: 85%; + white-space: pre-wrap; + padding: 1px 5px; + padding: 0; + background-color: #ddd; + vertical-align: baseline; +} + +body { + background-image: url(bodybg.png); + margin: 0 auto; +} + +div.contents { + width: 980px; + margin: 0 auto; + padding: 15px 15px; + border: 1px solid rgb(10, 80, 122); + background-color: #fff; +} + +span.arrow { + height: 13px; +}