docs

About docs of Clojure & libs
genmeblog 2018-02-15T22:45:44.000499Z

Ok, finally refactored my attempt to enhance doc writing with more metadoc tags. What is done: in place examples (can be tests also), categorization, code snippets (reusable by examples), constants section. Also made custom Codox writer to have it work without any new tools.

genmeblog 2018-02-15T22:46:09.000214Z

code: https://github.com/generateme/metadoc/

genmeblog 2018-02-15T22:46:45.000477Z

And example namespace with all (I hope) features currently implemented.

genmeblog 2018-02-15T22:48:56.000165Z

it has no documentation yet

genmeblog 2018-02-15T22:49:39.000440Z

waiting for your criticism

arrdem 2018-02-15T23:45:31.000241Z

I do like the categories idea! I’ve got my own similar shim I’m using for my shelving project which checks for ^:categories #{} on every public var and uses that to partition vars into different doc files.

arrdem 2018-02-15T23:47:06.000381Z

I don’t think I like examples inline tho. For https://github.com/arrdem/shelving one of the things I played with was doctests and just supporting arbitrary Markdown tripplequote code blocks inside docstrings. There were some pretty good objections that brought up around the verbosity of putting that sort of metadata inside docstrings instead of having a sidecar registry ala spec that let you separate your examples from your program text.