cljdoc

Eugen 2023-12-05T13:38:43.028549Z

@lee: regarding migrating metrics-clojure to cljdoc . I did explore cljdoc a bit, but I am not convinced. It has some nice features - esp related to clojure code but I also feel it's missing some things and some things seem way more complicated. It might be that I am not familiar with cljdoc Some of the features that I like about Sphinx (what metrics-clojure is currently using are): • Simple cli tool build process - don't need a running server and all the steps I saw here: https://github.com/cljdoc/cljdoc/blob/master/doc/running-cljdoc-locally-author.adoc • Docs are published from the local files as local files that I can inspect easily • I can get single page html (easy for searching), multi page html - easy for mobile, pdf / epub Will continue to investigate, but my first impression is that to do a local build and inspect the result is more complicated with cljdoc.

sphinx-build -M html docs/source/ docs/build/

martinklepsch 2023-12-05T15:30:38.813089Z

Hey Eugen 🙂 I'll chime in here since I just read this. I think you're very much right that the local doc generation experience is probably not as straightforward as with something that just generates some files via a CLI. That said I think there's a few reasons why you might still want to consider publishing to cljdoc: • You get free versioning of your docs and it is auto-published as you publish new releases to Clojars. • Docs are presented in a consistent format that end-users are familiar with (which also has search) While local preview could be easier there's also not that much to it, as in there's a cljdoc.edn file pointing to Markdown/Asciidoc files and then there's docstrings which are interpreted as Markdown also. 🙂 And in the end you won't have to deal with publishing the documentation files, maintaining infrastructure around that etc.

❤️ 1
➕ 1
Eugen 2023-12-05T16:28:45.415409Z

to me it's important to have the local flow and not depend on an external service

lread 2023-12-05T16:47:54.270589Z

The choice is yours @eugen.stan, everything has its pros and cons. One thing to keep in mind is that cljdoc will attempt to build your docs regardless. If you change your mind, my offer to help with cljdoc still stands.

seancorfield 2023-12-05T16:51:00.009369Z

@eugen.stan Users will look on cljdoc anyway. Here's what they currently see for metrics-clojure: https://cljdoc.org/d/metrics-clojure/metrics-clojure/2.10.0/doc/readme Fine for the API but doesn't include any articles.

seancorfield 2023-12-05T16:53:17.463189Z

In order to have HTML docs available for metrics-clojure, you would need to generate them to the gh-pages branch (as a complete repo) so they show up as http://clj-commons.org/metrics-clojure/ and that is definitely not a simple, single CLI command.

Eugen 2023-12-05T16:55:49.632709Z

I see this as 2 separate things: • building docs • publishing docs - which is gh-pages here

Eugen 2023-12-05T16:56:10.595299Z

above I was refering to building docs - specifically - on my local system

Eugen 2023-12-05T16:56:34.774319Z

let's say I have a strong opinion on local first

seancorfield 2023-12-05T16:58:07.158159Z

Users don't care about building docs. They care about reading them online. Don't optimize for your convenience.

Eugen 2023-12-05T16:59:30.457589Z

you have a good point, but as long as I am puting the effort it should be ok for me. Maybe I am a bit selfish in this regard but if I don't like the process, chancess are I won't do it.

lread 2023-12-05T17:00:38.948519Z

But… if you are willing to accept my help you would not be alone 🙂

Eugen 2023-12-05T17:01:27.949299Z

thanks @lee, I did not refuse it - but also did not accept it yet

Eugen 2023-12-05T17:01:51.780239Z

I am not trying to be difficult, just making sure I am ok with what I am getting into

seancorfield 2023-12-05T17:01:53.256049Z

And if you make it compatible with http://cljdoc.org once, every version will get its own docs automatically in future. With your approach, there are no versioned docs.

lread 2023-12-05T17:02:09.524289Z

But you are volunteering your time so you should be comfortable with your choice.

seancorfield 2023-12-05T17:03:27.145649Z

(we're in the same boat with marginalia -- but that's much more complex because it has to have its docs in a particular format and generating them as HTML is the only option right now... but it's manual, there's no versioning, and I'm definitely not happy with that)

Eugen 2023-12-05T17:03:29.830559Z

versioning is part of https://docs.readthedocs.io/en/stable/versions.html as well - via tags

Eugen 2023-12-05T17:04:05.895499Z

I'll take some time and see if we can have our cake and eat it too

Eugen 2023-12-05T17:04:12.091649Z

thanks for the help

❤️ 1