[mlpack-git] master: Fixed pixelated formulas in the HTML output. (26803dc)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Aug 29 13:57:59 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/814605744b0a7c8b70a955076d3f110e2d6687db...459242594a29b6bae06ef3ffa4be7c2757c15246
>---------------------------------------------------------------
commit 26803dca1fb551478a062648aaf2b888f89ea4fd
Author: Mikhail Lozhnikov <lozhnikovma at gmail.com>
Date: Mon Aug 29 20:57:59 2016 +0300
Fixed pixelated formulas in the HTML output.
>---------------------------------------------------------------
26803dca1fb551478a062648aaf2b888f89ea4fd
CMake/GenerateDoxyfile.cmake | 12 ++++++++++++
Doxyfile | 5 +++--
doc/doxygen/extra-stylesheet.css | 7 +++++++
doc/doxygen/footer.html | 16 ++++++++++++++++
4 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/CMake/GenerateDoxyfile.cmake b/CMake/GenerateDoxyfile.cmake
index de81410..4e74496 100644
--- a/CMake/GenerateDoxyfile.cmake
+++ b/CMake/GenerateDoxyfile.cmake
@@ -28,6 +28,18 @@ string(REPLACE
string(REPLACE
"./doc/policies"
"${CMAKE_CURRENT_SOURCE_DIR}/doc/policies"
+ DOXYFILE_CONTENTS "${DOXYFILE_AUXVAR}"
+)
+
+string(REPLACE
+ "./doc/doxygen/footer.html"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doc/doxygen/footer.html"
+ DOXYFILE_AUXVAR "${DOXYFILE_CONTENTS}"
+)
+
+string(REPLACE
+ "./doc/doxygen/extra-stylesheet.css"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doc/doxygen/extra-stylesheet.css"
DOXYFILE_CONTENTS "${DOXYFILE_AUXVAR}")
# Change the STRIP_FROM_PATH so that it works right even in the build directory;
diff --git a/Doxyfile b/Doxyfile
index 231773d..352bb95 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -135,8 +135,9 @@ GENERATE_HTML = YES
HTML_OUTPUT = html
HTML_FILE_EXTENSION = .html
HTML_HEADER =
-HTML_FOOTER =
+HTML_FOOTER = ./doc/doxygen/footer.html
HTML_STYLESHEET =
+HTML_EXTRA_STYLESHEET = ./doc/doxygen/extra-stylesheet.css
HTML_ALIGN_MEMBERS = YES
GENERATE_HTMLHELP = NO
CHM_FILE =
@@ -163,7 +164,7 @@ PDF_HYPERLINKS = NO
USE_PDFLATEX = NO
LATEX_BATCHMODE = NO
LATEX_HIDE_INDICES = NO
-FORMULA_FONTSIZE = 12
+FORMULA_FONTSIZE = 50
#---------------------------------------------------------------------------
# configuration options related to the RTF output
#---------------------------------------------------------------------------
diff --git a/doc/doxygen/extra-stylesheet.css b/doc/doxygen/extra-stylesheet.css
new file mode 100644
index 0000000..a9f8082
--- /dev/null
+++ b/doc/doxygen/extra-stylesheet.css
@@ -0,0 +1,7 @@
+/* Additional CSS styles for the html output */
+
+/* Fix the size of inline formulas */
+img.formulaInl {
+ vertical-align: middle;
+ height: 15pt;
+}
diff --git a/doc/doxygen/footer.html b/doc/doxygen/footer.html
new file mode 100644
index 0000000..5641521
--- /dev/null
+++ b/doc/doxygen/footer.html
@@ -0,0 +1,16 @@
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated by  <a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/>
+</a> $doxygenversion
+</small></address>
+</body>
+<script type="text/javascript">
+var x = document.getElementsByClassName("formulaDsp");
+var i;
+for (i = 0; i < x.length; i++)
+{
+ x[i].width /= 4;
+}
+</script>
+</html>
More information about the mlpack-git
mailing list