Resources packaged
This commit is contained in:
parent
46c4f474a3
commit
90f3c1eb1f
2 changed files with 4 additions and 6 deletions
|
@ -7,10 +7,8 @@
|
|||
[org.clojure/tools.cli "0.2.1"]
|
||||
[org.markdownj/markdownj "0.3.0-1.0.2b4"]]
|
||||
|
||||
:resources-path "vendor"
|
||||
:resource-paths ["vendor"]
|
||||
|
||||
;;Needed for testing Latex equation formatting. You must download
|
||||
;;and install MathJax in you doc directory.
|
||||
:marginalia {:javascript ["mathjax/MathJax.js"]}
|
||||
|
||||
:eval-in-leiningen true)
|
||||
:marginalia {:javascript ["mathjax/MathJax.js"]})
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
(catch java.lang.NullPointerException npe
|
||||
(println (str "Could not locate resources at " resource-name))
|
||||
(println " ... attempting to fix.")
|
||||
(let [resource-name (str "./resources/" resource-name)]
|
||||
(let [resource-name (str *resources* resource-name)]
|
||||
(try
|
||||
(-> (.getContextClassLoader (Thread/currentThread))
|
||||
(.getResourceAsStream resource-name)
|
||||
|
@ -377,7 +377,7 @@
|
|||
"Syntax highlighting provided by Alex Gorbatchev's "
|
||||
[:a {:href "http://alexgorbatchev.com/SyntaxHighlighter/"}
|
||||
"SyntaxHighlighter"]
|
||||
floating-toc]
|
||||
floating-toc-html]
|
||||
(inline-js (str *resources* "app.js"))]]))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue