babashka-sci-dev

borkdude 2022-11-24T12:45:29.187999Z

@t is currently investigating mkdocs for documentation for nbb. @pez and @ericdallo have good experience with this. It was recommended by @bozhidar to PEZ, but bozhidar is now using something else. Any reason for the switch?

bozhidar 2022-12-05T21:26:54.264659Z

I just like AsciiDoc a lot better for creating documentation. Also - Antora is very well thought out and brilliantly well supported tool. MkDocs gets the job done (I used it for a long time and I was reasonably happy with it), but doesn't hold a candle to Antora IMO. Probably it didn't also help that MkDocs on ReadTheDocs was constantly broken in one way or another. 😄

pez 2022-12-05T21:39:34.342729Z

Yeah, with ReadTheDocs it was not fun using MkDocs. But since ditching RTD, MkDocs has served Calva very well. No idea what Antora is, but it probably is better. 😃

borkdude 2022-12-05T21:44:54.953709Z

I evaluated Antora but according to polls, people by far favor a single page documentation site over a multipage thing with JS-based search. I've done the polls before and again last weekend and both times the results were unanimous...

pez 2022-12-05T21:53:40.677189Z

A downside with that is that unfurls/social cards are document based. So all sections of the docs site get the same preview, same description, same meta. I don't want to make that trade off. And the MkDocs search is quite awesome.

borkdude 2022-12-05T21:55:46.061769Z

I don't optimize docs for social media or mobile usage, but for developer-behind-the-laptop/pc usage

pez 2022-12-05T22:26:24.854269Z

It has nothing to do with mobile usage. People, including developers-behind-the-laptop/pc, often share links to documentation with other developers-behind-the-laptop/pc over Slack, social media, etcetera. To me it is important that the preview gives reasonably good context, and I think ”Calva documentation” is too general, and prefer ”Calva Pretty Printing” or "Calva Getting Started”, etcetera, and not just about the title, but the description as well. Therefore I am not willing to make the tradeoff.

pez 2022-12-05T22:27:49.832659Z

Like so: https://calva.io/api/

pez 2022-12-05T22:29:32.459909Z

There are always trade-offs, and this preview context costs me in some ways. But to me it is important so I am paying those costs.

borkdude 2022-12-05T22:31:16.118419Z

I don't see any preview ;)

borkdude 2022-12-05T22:31:52.530039Z

I've done polls twice now and most people want a single page. I'm not the person reading the docs, but the person writing the docs, mostly, so I'll just go with what users prefer

pez 2022-12-05T23:32:13.651689Z

> I don't see any preview 😉 Funny, but it looks like so for people who can see it. Similar on other platforms.

pez 2022-12-05T23:34:00.003629Z

In my case I am often the person sharing links to the docs. 😃

Avelino 2022-11-24T12:45:32.625799Z

@t has joined the channel

pez 2022-11-24T12:45:32.724629Z

@pez has joined the channel

ericdallo 2022-11-24T12:45:32.817409Z

@ericdallo has joined the channel

bozhidar 2022-11-24T12:45:32.914729Z

@bozhidar has joined the channel

ericdallo 2022-11-24T12:47:10.975549Z

I used https://squidfunk.github.io/mkdocs-material/ for multiple projects: https://clojure-lsp.io/, https://emacs-lsp.github.io/lsp-mode/, https://emacs-lsp.github.io/lsp-dart/ and others, I really recommend using it

ericdallo 2022-11-24T12:47:47.347889Z

for lsp-mode, there is even custom elisp code that generates all functions and variables docs programatically and convert to markdown to be on the webpage

👀 1
pez 2022-11-24T12:49:48.977699Z

Ohhh, I must fix some of that generated content for Calva as well. It's a PITA with the API docs!

borkdude 2022-11-24T12:53:28.254809Z

> custom elisp code that generates all functions and variables docs programatically sounds a bit like https://github.com/borkdude/quickdoc maybe?

ericdallo 2022-11-24T12:58:17.221279Z

For clojure projects sounds good @borkdude