nextjournal

2021-12-30T05:44:53.276600Z

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!)

mkvlr 2022-01-01T17:37:17.277500Z

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/

mkvlr 2022-01-01T17:38:28.277800Z

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
mkvlr 2022-01-01T18:15:06.278600Z

I might try this next week

mkvlr 2022-01-01T20:17:28.278800Z

https://github.com/nextjournal/clerk/commit/eeece782025b5595d7153e3b80667925ff005265 is a small proof of concept

❤️ 1
mkvlr 2022-01-01T20:24:08.279Z

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

Tom H. 2021-12-31T04:32:48.277Z

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. 2021-12-31T04:41:02.277200Z

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

2022-01-06T11:12:34.000100Z

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

2022-01-06T11:12:38.000300Z

👍 1