juxt 2020-06-03

any asciidoc modes for emacs that are maintained?

I think most juxters used the adoc mode, then stopped because it made text different sizes.

➕ 1

then stopped, means, they don't use any modes, just text mode?

I don't use any modes for asciidoc, I tried it and didn't find it readable.

I find the support in VSCode quite good, but it's not emacs

I (and probably most other juxters) use the asciidoctor.js browser extension and have the file I'm editing open in the browser and use that as a preview, the only emacs config is to center the text and stop overflowing lines getting cut in horrible ways. Only issue is you have to save to see the preview

Yup I do the same

What's the benefit of the browser extension over watching and compiling the file?

Just that it’s all done for you, getting a working setup is just open the file in emacs and space f o to render it, no need to setup a watcher or deal with jruby shenanigans

Made myself a babashka watch + refresh browser script. https://github.com/babashka/book/blob/master/script/watch.clj Demo:

Very cool, I’ve found myself using babashka (and kondo) a fair amount recently and I’m very happy with them

Actually could probably make a decent static site tool with babashka + asciidoc, hmm idea...

For static sites there's also bootleg which can be used as a pod (cmd line tool as clojure library) in babashka: https://github.com/retrogradeorbit/bootleg A demo: https://github.com/borkdude/michielborkent.nl/blob/master/script/generate.clj

it doesn't support asciidoc though. is there a Java / clojure library for asciidoc? maybe it could add it.

We use this, it works but it’s not the most performant and you get some funky errors https://github.com/asciidoctor/asciidoctorj