nextjournal 2022-03-04

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

👍 1

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.

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.

👂 2
🎶 2

I see that your latest release adds reagent support. Can’t wait to try it out

🎉 2

felt that it’s time to let #clerk have it’s own channel

👍 4
😍 4