Use codox to build Clojure documentation for docsify
Follow the installation instructions and usage for codox
Add codoxify
as a dependency to your project.clj
:
:profiles {:codox {:dependencies [[wavejumper/codoxify "1.0.2"]]
:plugins [[lein-codox "0.10.7"]]
:codox {:writer codoxify.writer/write-docs}}}
Without any extra configuration, this will compile your documentation to target/docs
npx docsify init ./target/docs
npx docsify serve ./target/docs
lein with-profiles +codox codox
Edit ./target/docs/index.html
and configure docsify as such:
window.$docsify = {
loadSidebar: true,
subMaxLevel: 3, // important
loadNavbar: true,
alias: {
'sidebar.md': '/_sidebar.md' //important
}
}
An example of the ring project generated with codoxify can be found here
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close