This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-02
Channels
- # announcements (26)
- # architecture (29)
- # babashka (8)
- # beginners (91)
- # calva (70)
- # cider (7)
- # circleci (2)
- # cljs-dev (1)
- # clojure (79)
- # clojure-australia (2)
- # clojure-dev (3)
- # clojure-europe (40)
- # clojure-italy (2)
- # clojure-losangeles (4)
- # clojure-nl (4)
- # clojure-uk (4)
- # clojurescript (34)
- # cursive (13)
- # datomic (16)
- # defnpodcast (2)
- # emacs (11)
- # events (1)
- # fulcro (13)
- # graalvm (17)
- # gratitude (3)
- # instaparse (10)
- # introduce-yourself (2)
- # jobs (1)
- # jobs-discuss (5)
- # juxt (3)
- # kaocha (5)
- # meander (5)
- # membrane (2)
- # nextjournal (43)
- # off-topic (42)
- # pathom (52)
- # pedestal (8)
- # portal (3)
- # rdf (2)
- # re-frame (10)
- # reveal (21)
- # shadow-cljs (56)
- # slack-help (7)
- # vim (33)
- # xtdb (43)
Ok, finally made it work as I (almost) wanted 🙂 https://clojure2d.github.io/clojure2d/docs/notebooks/index.html#/notebooks/color.clj
"almost" means: I would like to see more compact view, ie smaller distances in marked areas
I was trying to adjust CSS (via [:style ...]
method) but it gets overwritten after all. Any suggestion how to achieve it?
I think we used to have smaller margins before we went with mostly the tailwind defaults
https://github.com/nextjournal/viewers/blob/24577a71678e20d1c00c6645a25688e041a9a6ad/resources/public/css/viewer.css#L483 was our stylesheet before
any news here? @U4FSZE57V
@U1EP3BZ3Q haven’t had time to look at it yet. today though!
Happy to see you trying Clerk for this! Making it easy to produce better documentation is one of the things I'm excited about with this project. 🙂

(clerk/html [:style
(str ".viewer + .viewer { margin-top: 1rem; }"
"h1, h2, h3, h4 { margin-bottom: 0.5rem !important; }")])
This should do the trick for now. I’ll take a look at how we can make customizations like these easier soon.
Let me know if this works for you!@U07SQTAEM I've tried many, many things so far 🙂
@U4FSZE57V Oh, thanks, will be trying today. I'm really bad in CSS cause I was trying replacing ".viewer" not ".viewer + .viewer"...
I had another java process running clerk server in background (left from emacs crash...).
After a couple of hours (it total) of setup, questions and digging the source of the code I could focus on writing examples. Great work guys!
Great to hear! Btw a small trick: if you’d like to only publish one notebook you can call it index.clj
and it will be the start page.
hi! I've just started using clerk, but I'd like to use it in a special way. What I need is that I use my regular repl in the IDE, but sometimes send the output into clerk. So I don't need this file watcher and the namespace based document generation. All I need is a command that allows me appending stuff to the current document.
yep, reasonable. I’d recommend setting up a hotkey as described here https://github.com/nextjournal/clerk#intellijcursive
in that case something along the lines of the https://github.com/nextjournal/clerk/blob/main/notebooks/tap.clj could work.
I just want to execute (clerk/vl .. ) anywhere and get this appended to the current doc in Clerk or something like that. My workflow is, that I'm coding some stuff, but sometimes there is a complicated data structure that I'd like to visualize in the browser, instead of the REPL. I was thinking about writing my own clojurescript/figwheel gateway or similar, but then I saw clerk has a lot of nice visualization and though I'd try to reuse it this way
hm. for the tap.clj example notebook, it says: Cannot invoke "java.util.concurrent.Future.get()" because "fut" is null. Strange, because I've copypasted it verbatim, only changed the namespace for my project
I think it has some problem with the
^::clerk/no-cache @!taps
because if I remove this, then it renders at least once