Created
March 11, 2021 18:29
-
-
Save meawoppl/e40716e01db411a3242a218be69a4930 to your computer and use it in GitHub Desktop.
Add MathJax support to javaDoc via gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This adds support for mathjax to javadocs | |
javadoc { | |
configure(options) { | |
options.overview = "src/main/javadoc/overview.html" // relative to source root | |
options.addBooleanOption("-allow-script-in-comments",true) | |
options.header = "<script type=\"text/javascript\" async" + | |
" src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML\">" + | |
"</script>" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment