cljdoc

https://cljdoc.org/ & https://github.com/cljdoc/cljdoc
Sam Ritchie 2020-12-01T18:19:29.138700Z

Hey all! does anyone have advice on how to preview docs as you write them?

Sam Ritchie 2020-12-01T18:19:41.139100Z

I know there is the more hardcore preview with the docker image, ingesting a jar, etc

martinklepsch 2020-12-01T18:54:36.139800Z

@sritchie09 the “hardcore preview” 😄 is the only supported way

martinklepsch 2020-12-01T18:54:50.140200Z

if you only want to preview an article you can also use previewers for markdown/asciidoc

Sam Ritchie 2020-12-01T18:55:01.140500Z

looking to validate all my links etc

martinklepsch 2020-12-01T18:57:27.141Z

yeah, probably best to follow the steps outlined here: https://github.com/cljdoc/cljdoc/blob/master/doc/running-cljdoc-locally.adoc#testing-docs-for-a-library-during-development

Sam Ritchie 2020-12-01T19:00:42.141300Z

okay, nice, thank you!

Sam Ritchie 2020-12-01T19:10:52.141700Z

strangely I’m seeing

No method in multimethod 'filepath->type' for dispatch value: null

martinklepsch 2020-12-01T19:11:33.142200Z

could it be you have a cljdoc.edn that isn’t valid?

martinklepsch 2020-12-01T19:11:47.142700Z

e.g. has a :file key that’s nil or similar?

Sam Ritchie 2020-12-01T19:11:50.142800Z

I’m cutting my cljdoc.edn down to bare bones to check it out, visually it LOOKS like all files are here (though I may have a typo)

Sam Ritchie 2020-12-01T19:14:21.143500Z

amazing @martinklepsch, very helpful!

Sam Ritchie 2020-12-01T19:14:24.143900Z

it found my typo

martinklepsch 2020-12-01T19:14:33.144100Z

excellent

martinklepsch 2020-12-01T19:14:39.144400Z

arguably not the best error message 😄

Sam Ritchie 2020-12-01T19:15:24.144900Z

I’m going through this myself, looking for a nice pattern to expose solid default error messages for multimethods

Sam Ritchie 2020-12-01T19:15:58.145200Z

thanks for getting me unstuck here

Sam Ritchie 2020-12-01T19:16:07.145500Z

and for this wonderful library, etc etc!

martinklepsch 2020-12-01T19:23:39.145800Z

welcome & thanks 🙏

Sam Ritchie 2020-12-01T19:31:13.146600Z

@martinklepsch, sorry to come running back… strangely the preview is still failing with the same exception. I do wish I could see which file, or entry, it is trying to get an extension for and failing

Sam Ritchie 2020-12-01T19:31:22.147100Z

this is my TOC - the checker you sent passes just fine

Sam Ritchie 2020-12-01T19:31:51.147400Z

maybe the empty dicts are a problem? I took that style from https://github.com/metosin/reitit/blob/master/doc/cljdoc.edn

Sam Ritchie 2020-12-01T19:32:24.148100Z

I also have all .adoc files… only asking here since there is serious latency on checking via the docker method

Sam Ritchie 2020-12-01T19:33:21.148300Z

oh, you know what - I bet it’s that I haven’t committed

martinklepsch 2020-12-01T19:42:00.148800Z

yup, not committing would do it, the documentation building always operates on a specific Git rev

Sam Ritchie 2020-12-01T19:44:36.149400Z

it looks like adoc files don’t show their title on the page, is that right?

Sam Ritchie 2020-12-01T19:44:56.149500Z

Sam Ritchie 2020-12-01T19:45:01.150100Z

= How to Use SICMUtils

How do you use this?

- Library
- Notebook
- Clojurescript (see cljs page)
- Shell (via GraalVM)

Sam Ritchie 2020-12-01T19:45:02.150300Z

for that file

martinklepsch 2020-12-01T19:46:59.150600Z

that looks odd to me

Sam Ritchie 2020-12-01T19:48:24.151200Z

looks like this is true on the cljdoc docs page too

Sam Ritchie 2020-12-01T19:48:33.151800Z

here’s the raw file

martinklepsch 2020-12-01T20:13:57.152200Z

hm, that’s weird

dominicm 2020-12-01T23:11:51.152600Z

Oh I thought it was supposed to look like that

dominicm 2020-12-01T23:11:58.152900Z

I also experience this

dominicm 2020-12-01T23:12:25.153600Z

I can probably look at that sometime this weekend