This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-04
Channels
- # announcements (19)
- # babashka (11)
- # babashka-sci-dev (9)
- # beginners (71)
- # calva (25)
- # cider (1)
- # clara (36)
- # clj-kondo (47)
- # clojure (65)
- # clojure-dev (64)
- # clojure-europe (9)
- # clojure-nl (2)
- # clojure-seattle (1)
- # clojure-uk (2)
- # clojured (8)
- # clojurescript (17)
- # cursive (9)
- # data-science (36)
- # datahike (11)
- # emacs (10)
- # figwheel-main (19)
- # fulcro (15)
- # graalvm (12)
- # humbleui (5)
- # introduce-yourself (3)
- # jobs (10)
- # leiningen (4)
- # lsp (24)
- # malli (7)
- # nextjournal (23)
- # off-topic (1)
- # pedestal (2)
- # polylith (6)
- # portal (1)
- # re-frame (3)
- # reitit (2)
- # releases (2)
- # remote-jobs (1)
- # reveal (9)
- # shadow-cljs (13)
- # spacemacs (6)
- # xtdb (3)
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
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
Yeah, just a single notebook
Right now what I get looks like this
Ok. Cool. Thanks.
I love clerk.