Fork me on GitHub
#cljdoc
<
2020-12-01
>
Sam Ritchie18:12:29

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

Sam Ritchie18:12:41

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

martinklepsch18:12:36

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

martinklepsch18:12:50

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

Sam Ritchie18:12:01

looking to validate all my links etc

Sam Ritchie19:12:42

okay, nice, thank you!

Sam Ritchie19:12:52

strangely I’m seeing

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

martinklepsch19:12:33

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

martinklepsch19:12:47

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

Sam Ritchie19:12:50

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 Ritchie19:12:21

amazing @martinklepsch, very helpful!

Sam Ritchie19:12:24

it found my typo

martinklepsch19:12:39

arguably not the best error message 😄

Sam Ritchie19:12:24

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

Sam Ritchie19:12:58

thanks for getting me unstuck here

Sam Ritchie19:12:07

and for this wonderful library, etc etc!

martinklepsch19:12:39

welcome & thanks 🙏

Sam Ritchie19:12:13

@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 Ritchie19:12:22

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

Sam Ritchie19:12:51

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

Sam Ritchie19:12:24

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

Sam Ritchie19:12:21

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

martinklepsch19:12:00

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

Sam Ritchie19:12:36

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

Sam Ritchie19:12:01

= How to Use SICMUtils

How do you use this?

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

Sam Ritchie19:12:02

for that file

martinklepsch19:12:59

that looks odd to me

Sam Ritchie19:12:24

looks like this is true on the cljdoc docs page too

Sam Ritchie19:12:33

here’s the raw file

martinklepsch20:12:57

hm, that’s weird

dominicm23:12:51

Oh I thought it was supposed to look like that

dominicm23:12:58

I also experience this

dominicm23:12:25

I can probably look at that sometime this weekend