Hello
Loving Clerk. Is there any option I can use to bypass elision ?
Especially for static generation…
@srijayanth if you’d like to have no eliding at all happening, the following snippet should do it:
(ns no-elision
(:require [nextjournal.clerk.viewer :as v]))
(let [dissoc-fetch-opts (fn [vs] (mapv #(dissoc % :fetch-opts) vs))]
(reset! v/!viewers (-> (v/get-all-viewers)
(update :root dissoc-fetch-opts)
(update :table dissoc-fetch-opts))))Wow! Did the trick! Thanks
How do I export a single html page?
@mkvlr - is there a way I can customise the index page generated by the default static app?
@srijayanth yes, by having an index.clj|md in your :paths
like so (nextjournal.clerk/build-static-app! {:paths ["index.md"] :browse? false})
Ah, neat. Thanks.
it’s how http://nextjournal.github.io/clerk-demo/ is generated from https://github.com/nextjournal/clerk-demo
Also, is there a way to export just a single page? Not a whole site
you mean a single notebook? Way to do that currently is name that index.clj|md
Yeah, just a single notebook
Right now what I get looks like this
move it out of notebooks/ to the root
Ok. Cool. Thanks.
I love clerk.
It really is fantastic.
thank you!
I see that your latest release adds reagent support. Can’t wait to try it out
felt that it’s time to let #clerk have it’s own channel