nextjournal

genmeblog 2022-02-02T17:14:21.513829Z

What about inlined comments? eg. (list 1 2 3) ; produce a list is displayed as:

🐞 1
mkvlr 2022-02-02T17:17:40.010079Z

that’s a bug, issue welcome

genmeblog 2022-02-02T17:17:49.079699Z

Sure! πŸ™‚

πŸ™ 1
genmeblog 2022-02-02T21:06:49.124589Z

Ok, finally made it work as I (almost) wanted πŸ™‚ https://clojure2d.github.io/clojure2d/docs/notebooks/index.html#/notebooks/color.clj

😻 3
philippamarkovics 2022-02-04T08:10:20.256629Z

@tsulej haven’t had time to look at it yet. today though!

genmeblog 2022-02-04T08:17:33.878979Z

Thanks!

2022-02-04T15:19:13.404799Z

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. πŸ™‚

1
philippamarkovics 2022-02-04T15:45:21.627279Z

@tsulej

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

πŸ™ 2
genmeblog 2022-02-04T19:13:43.969309Z

@jackrusher I've tried many, many things so far πŸ™‚

genmeblog 2022-02-04T19:15:09.058949Z

@philippmarkovics Oh, thanks, will be trying today. I'm really bad in CSS cause I was trying replacing ".viewer" not ".viewer + .viewer"...

genmeblog 2022-02-04T20:04:21.231139Z

`margin-top` seems to work but there is also big padding which I can't replace πŸ˜•

genmeblog 2022-02-04T20:04:35.488279Z

headers also do not work

genmeblog 2022-02-04T20:25:05.863709Z

I hate it... works. Sorry for confusion.

🀣 2
mkvlr 2022-02-04T20:32:04.753779Z

it's the same with CSS & me

genmeblog 2022-02-04T20:39:51.647249Z

I had another java process running clerk server in background (left from emacs crash...).

genmeblog 2022-02-04T20:40:16.165959Z

genmeblog 2022-02-04T20:40:44.419159Z

But yeah, CSS is creepy πŸ™‚

genmeblog 2022-02-02T21:11:14.031439Z

"almost" means: I would like to see more compact view, ie smaller distances in marked areas

genmeblog 2022-02-02T21:12:02.516719Z

I was trying to adjust CSS (via [:style ...] method) but it gets overwritten after all. Any suggestion how to achieve it?

mkvlr 2022-02-02T21:19:27.570809Z

unfortunately I don’t have a suggestion, @philippmarkovics might

πŸ™ 1
mkvlr 2022-02-02T21:29:48.195689Z

I think we used to have smaller margins before we went with mostly the tailwind defaults

genmeblog 2022-02-02T22:24:08.980899Z

Now it's 1.5rem

genmeblog 2022-02-03T17:44:31.952099Z

any news here? @philippmarkovics

genmeblog 2022-02-02T21:09:23.302979Z

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!

mkvlr 2022-02-02T21:20:35.275569Z

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.

genmeblog 2022-02-02T21:26:04.262089Z

Possibly more to come. But good to know πŸ™‚

mkvlr 2022-02-02T21:27:01.264479Z

you can also customize the index page this way

πŸ‘ 1
SK 2022-02-02T21:36:27.815559Z

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.

mkvlr 2022-02-02T21:37:34.725529Z

yep, reasonable. I’d recommend setting up a hotkey as described here https://github.com/nextjournal/clerk#intellijcursive

mkvlr 2022-02-02T21:38:05.641929Z

oh, you want to append, not show a whole doc?

mkvlr 2022-02-02T21:39:59.774539Z

in that case something along the lines of the https://github.com/nextjournal/clerk/blob/main/notebooks/tap.clj could work.

SK 2022-02-02T21:40:13.452269Z

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

mkvlr 2022-02-02T21:41:56.761869Z

yep, the above should work if you’re fine with using tap> for this.

SK 2022-02-02T21:54:02.294869Z

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

SK 2022-02-02T21:54:46.360329Z

I think it has some problem with the

^::clerk/no-cache @!taps
because if I remove this, then it renders at least once

mkvlr 2022-02-02T21:55:15.760279Z

are you on the latest Clerk version, 0.5.346 ?

SK 2022-02-02T21:55:45.720929Z

yes, [io.github.nextjournal/clerk "0.5.346"]

mkvlr 2022-02-02T21:55:46.125899Z

I can run it fine here

SK 2022-02-02T21:56:28.999329Z

hm maybe I can try it inside the demo project to see if the problem is only with my setup

mkvlr 2022-02-02T21:56:51.683789Z

can you rule out it’s the cache causing problems by changing the ns form to

(ns ^:nextjournal.clerk/no-cache tap
  (:require [nextjournal.clerk :as clerk]))

mkvlr 2022-02-02T21:57:59.643719Z

wrapping up for the day here but I’ll check back tomorrow

SK 2022-02-02T21:59:57.779379Z

@mkvlr thanks for all the help!

πŸ™Œ 1