public
Description: HTML documentation for Clojure libraries.
Homepage: http://github.com/mmcgrana/clj-doc
Clone URL: git://github.com/mmcgrana/clj-doc.git
name age message
file README.textile Sat Jan 31 04:12:06 -0800 2009 Update some docs [mmcgrana]
file TODO Sat Jan 31 04:12:06 -0800 2009 Update some docs [mmcgrana]
directory bin/ Fri Jan 30 17:57:53 -0800 2009 Add example docs, clean up some utils [mmcgrana]
file build.xml Fri Jan 30 17:39:58 -0800 2009 Work towards wider release, removing dependency... [mmcgrana]
directory example/ Sun Sep 06 11:36:59 -0700 2009 Update for current Clojure. [mmcgrana]
directory src/ Sun Sep 06 11:36:59 -0700 2009 Update for current Clojure. [mmcgrana]
directory test/ Sun Jan 11 12:54:33 -0800 2009 new clj-unit syntax [mmcgrana]
README.textile

clj-doc: Clojure HTML documentation generator

clj-doc generates HTML documentation for Clojure source code. The generated docs are searchable via JavaScript and include inline source snippets for the code that defined each var.

Example Docs

You can see example docs generated from recent recent Clojure and Clojure Contrib sources by opening example/index.html in your browser.

Setup

To generate your own docs, you will need the following dependencies:

You will also need clj-doc.jar, which you can produce by invoking ant.

Basic Usage

You can use the built-in clojure_gen.clj script to generate HTML docs for Clojure and the main libraries in Clojure-Contrib:


clj clj-doc/bin/clojure_gen.clj /path/to/output
open /path/to/output/index.html

To generate docs for a different set of libs, create your own script based on clojure_gen.clj. Note that any libs that you are documenting will need to be in your classpath, in addition to the dependencies of clj-doc itself.