Resources packaged

This commit is contained in:
fogus 2013-05-22 09:03:49 -04:00
parent 46c4f474a3
commit 90f3c1eb1f
2 changed files with 4 additions and 6 deletions

View file

@ -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"]})

View file

@ -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"))]]))