cljdoc

lread 2022-05-06T01:02:30.545969Z

dev warning: might be a few circleci build failures as I work out some kinks in some ci rework

lread 2022-05-06T01:59:42.306279Z

all done!

vemv 2022-05-06T19:31:49.887039Z

Is there doc on how to run cljdoc for a private (commercial) project? e.g. run it in CI and create an artifact to be uploaded elsewhere. Similar to "coverage" and "junit" tools

lread 2022-05-06T19:42:30.249979Z

Hiya @vemv, are you looking to run the cljdoc web site? Or do you just want to generate the library analysis edn?

đź‘‹ 1
vemv 2022-05-06T19:43:50.060579Z

I reckon that I want to generate the "cljdoc web site", but only for the project in question What would the behavior be if I visited / ?

lread 2022-05-06T19:46:55.900989Z

Hmm…. so currently cljdoc analyzes a library, saves the result in a database and then the web site dynamically renders from data stored in that database.

đź‘€ 1
lread 2022-05-06T19:49:58.069779Z

Tools like https://github.com/weavejester/codox (used by many), https://tomfaulhaber.github.io/autodoc (used by Clojure core team), and the new https://github.com/borkdude/quickdoc (something new from borkdude!) all generate static API docs. Would they be options?

vemv 2022-05-06T19:51:19.729099Z

I'm aware of them, but also IDK :) Does cljdoc have internal magic sauce that would make the results more accurate than e.g. codox?

lread 2022-05-06T19:54:20.125189Z

The https://github.com/cljdoc/cljdoc-analyzer is a fork of codox. They are pretty similar. Both do load-time analysis to glean public APIs. We currently do a little more (last time I checked) around discovering dynamically created vars for ClojureScript analysis.

👍 2
vemv 2022-05-06T19:55:34.611899Z

https://github.com/weavejester/codox/commits/master seems pretty sparse

lread 2022-05-06T19:57:14.533409Z

Load-time analysis is great in that it will discover everything, but can also be problematic (I mean everything has to actually load correctly). I am currently looking at also supporting static analysis for cljdoc (via clj-kondo data analysis which is what quickdoc uses). But that’s tangental… and not what you were asking about. simple_smile

vemv 2022-05-06T19:58:28.523249Z

I really appreciate load-time analysis so yeah I don't know where to take it from here... looks like the ingredients I want are there but not integrated ootb currently

vemv 2022-05-06T19:58:39.331509Z

might hack at some point

vemv 2022-05-06T19:58:53.145069Z

thanks for all the info!

borkdude 2022-05-06T20:01:00.886179Z

codox is pretty great - with quickdoc I wanted something that I could just check into my repo directly and look at straight from Github just as any other .md file in the repo

lread 2022-05-06T20:01:34.968649Z

Yeah a lot of folks are very happy with codox. I wouldn’t discount it.