This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-05
Channels
- # adventofcode (111)
- # announcements (20)
- # babashka (19)
- # beginners (47)
- # calva (7)
- # clojure (56)
- # clojure-dev (27)
- # clojurescript (2)
- # events (1)
- # holy-lambda (1)
- # juxt (2)
- # meander (18)
- # minecraft (4)
- # missionary (107)
- # nextjournal (21)
- # off-topic (30)
- # reagent (7)
- # reitit (19)
- # releases (1)
- # tools-build (8)
- # tools-deps (7)
- # vim (22)
- # xtdb (4)
I have this code:
^{:nextjournal.clerk/visibility #{:hide}}
(ns journal
(:require [nextjournal.clerk :as clerk]))
^{::clerk/visibility :hide}
(comment
(clerk/serve! {:browse true})
(clerk/serve! {:watch-paths ["src"]})
(clerk/show! "src/journal.clj"))
;; A comment
^{::clerk/visibility :hide} (shuffle (range 25))
but I still see the code cells in the document. What am I doing wrong?yes, need to use the latest git sha until we release it (next week if nothing unexpected comes up)
is there a way of displaying an image from a local folder? I'm trying:
(clerk/html [:img {:src "art/sketch-01-001-0001.jpg"}])
but it seems that folder is not servedI also added it as a :watch-paths
option in clerk/serve!
, but I don't think it's supposed to do that
yes, though not yet built-in / easy, see https://github.com/nextjournal/clerk/blob/main/notebooks/viewers/image.clj
this will serve the bytes with the given content type and embed it as base64 encoded blob for the static builds
so, if I'm correct, this is in github master
but the visibility stuff is in visibility2
and not in master, right?
landed in https://github.com/nextjournal/clerk/commit/a6ee5c71f7975fdca055d1bb701c9ed566da700d
I'm more familiar with ClojureScript than Clojure. I've got a small Clerk project I created already running ok on my system. I'm trying to start: https://github.com/nextjournal/clerk-demo from a Windows terminal using "clj" (CLI version 1.10.3.933). I get a startup exception: Caused by: org.graalvm.polyglot.PolyglotException: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/mail/.gitlibs/libs/io.github.nextjournal/viewers/1b1374db20b56d14a0f32835c1ce5d9254c23527/modules/markdown/resources/js/markdown.mjs Its a clean clone of the repo so I can't see how the problem is specific to me. Any Ideas? Thanks.
this looks like https://github.com/nextjournal/viewers/issues/29. Plan to look into this tomorrow
https://github.com/nextjournal/viewers/issues/29 has now been closed and clerk-demo has been updated however this problem hasn't been resolved on Windows. I've opened an issue in clerk-demo.
@U0E9JQT9P what version of Clerk and what JVM is this?