clj -X:goldly-docs
. Open Browser on Port 8000->scratchpad
sends the vizualisation to the browser.demo/goldly-reval.edn
:goldly-docs
{:extra-paths ["demo" "test"] ; to show static files (not auto generated ones)
:extra-deps {org.pinkgorilla/goldly-docs {:mvn/version "RELEASE"}}
:exec-fn goldly-server.app/goldly-server-run!
:exec-args {:profile "jetty"
:config "demo/goldly-reval.edn"}}
Now you can use your custom project in the same way as before, but get vizualisations.
The devtools config we use (in goldly-docs)
:devtools {:rdocument {:storage-root "demo/rdocument/"
:url-root "/api/rdocument/file/"}
:collections {:user [:clj "user/notebook/"]
:demo [:clj "demo/notebook/"]}}
(reval.config/set-config!
{:storage-root "demo/rdocument/"
:url-root "/api/rdocument/file/"})
By default storage root is "/tmp/rdocument/".
Example
Lets evaluate two namespaces:
(eval-notebook "demo.notebook.apple)
(eval-notebook "demo.notebook.banana)
Now say demo.notebook.banana includes a BufferedImage, then upon then the reproduceable document folder will look like this
rdocument/demo/notebook/apple/notebook.edn
rdocument/demo/notebook/banana/notebook.edn
rdocument/demo/notebook/banana/67770344-1424-4803-a9aa-01e21cb4ce39.png
clj -M:test
If some of the types cannot be found do rm .cpcache -r
. Multimethods and
protocols sometimes are a little tricky.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close