In order to generate the documentation for Ring and Compojure, I
created Codox after being unable to get Autodoc working.
Codox is pretty simple, but should work out of the box, and hopefully
looks quite nice. Here are a couple of examples:
http://mmcgrana.github.com/ring/
http://weavejester.github.com/compojure/
Options are limited so far, but patches to add options or improve the
formatting are welcome.
The project page is here:
https://github.com/weavejester/codox
- James
lein install plugin codox 0.3.1
lein doc
Question: One of my ns docstrings is a fair amount of text which is rendered as a really long line (because codox puts it inside a <pre>...</pre> element). How would you deal with longer documentation strings? Would I need to insert manual line breaks or is there a better way?
cheers,
gert
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
Am 26.12.2011 um 22:23 schrieb Gert Verhoog:
> Question: One of my ns docstrings is a fair amount of text which is rendered as a really long line (because codox puts it inside a <pre>...</pre> element). How would you deal with longer documentation strings? Would I need to insert manual line breaks or is there a better way?
Maybe we could agree on something like Markdown to render docstrings?
Sincerely
Meikel
Because docstrings can be read at a REPL with the `doc` macro, it's
common practise to break up docstrings onto multiple lines.
It might be an idea to figure out some standard syntax we could use,
like Markdown, that could be used for formatting docstrings.
- James
- James
It might be an idea to figure out some standard syntax we could use,
like Markdown, that could be used for formatting docstrings.