Fork me on GitHub
#nextjournal
<
2021-12-30
>
Pieter Koornhof05:12:53

Jumped onto clerk today. Seems great. Is there an existing way to link between notebook files? a menu of some sort in the browser? (instead of having to run (clerk/show!)

Tom H.04:12:48

I’m just getting started and not sure how to do it yet but it would be cool to set the viewer for the ns form to be a little navigation widget

Tom H.04:12:02

or maybe that’s not possible easy as it just returns nil?

mkvlr17:01:17

you can currently link between notebooks via clerk/doc-url but this is currently a no-op in normal Clerk and works only in the static build, see it in action at https://github.com/nextjournal/clerk-demo/blob/564c42bbf92ea0e7c391d80b8675e3267a4c932a/index.md / https://nextjournal.github.io/clerk-demo/

mkvlr17:01:28

shouldn’t be a lot of work to make it work in normal clerk mode as well and make it call clerk/show! there when clicked

👍 1
mkvlr18:01:06

I might try this next week

mkvlr20:01:08

let clerk show https://github.com/nextjournal/clerk/blob/main/index.clj if you want to see it in action

Pieter Koornhof11:01:34

Thanks will have a look. I ended up doing a simply poc where I just had a custom page that pulled namespaces from the file system, and then had clerk in an iframe. Ended up working nicely as I could tailor it to my specific needs