Skip to content

Instantly share code, notes, and snippets.

@meawoppl
Created March 11, 2021 18:29
Show Gist options
  • Save meawoppl/e40716e01db411a3242a218be69a4930 to your computer and use it in GitHub Desktop.
Save meawoppl/e40716e01db411a3242a218be69a4930 to your computer and use it in GitHub Desktop.
Add MathJax support to javaDoc via gradle
// 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