Skip to content

Commit

Permalink
improve doc gen; update mathjax
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Nov 7, 2023
1 parent 308c433 commit fe7c85d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@

:resource-paths ["vendor"]

;;Needed for testing Latex equation formatting. You must download
;;and install MathJax in you doc directory.
:marginalia {:javascript ["mathjax/MathJax.js"]}
;; updated to match the latest mathjax website information:
:marginalia {:javascript ["https://polyfill.io/v3/polyfill.min.js?features=es6"
"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"]}

;; lein docs assumes the lein-marginalia repo is a sibling of this
;; marginalia repo!
;; marginalia repo -- and that there is a marginalia-gh-pages sibling
;; which is marginalia checked out to the gh-pages branch:
:aliases {"docs" ["run" "-m" "marginalia.main"
"-d" "../marginalia-gh-pages"
"-f" "index.html"
"../lein-marginalia/src/leiningen/marg.clj"
"src/marginalia/core.clj"
"src/marginalia/html.clj"
Expand Down

0 comments on commit fe7c85d

Please sign in to comment.