cryogen

http://cryogenweb.org/ - static sites by @U0DJK1VH6 & Co.
Jakub Holý 2020-10-30T10:46:29.084300Z

@yogthos would you please consider merging https://github.com/cryogen-project/cryogen-asciidoc/pull/13 when you get the time for that? (I would just be happy to have it in in the context of https://hacktoberfest.digitalocean.com/ :))

Jakub Holý 2020-10-30T10:55:44.085600Z

Anyone here wants to give a try to the incremental compilation feature? You can do this with this deps.edn inside your blog and the described slight change to your server.clj: https://gist.github.com/holyjak/f32450d91bd31ebc57cfb3764c36c04a

practicalli-john 2020-10-30T11:01:28.088200Z

@holyjak I have provided common defaults with the aliases where possible, to reduce the cognitive load of remembering what the options are (no options are easy to remember). If there are multiple functions that could be called for a library, then I typically create multiple aliases. This way only key value pairs are ever passed, keeping a more consistent command line. Thanks. Feel free to ask in the #practicalli channel for anything relating to the configurations or content I've created.

👍 1
❤️ 1
yogthos 2020-10-30T12:40:58.088800Z

I'm ok to merge it if looks good to @carmen

❤️ 1
carmen 2020-10-30T14:46:31.089100Z

LGTM!

yogthos 2020-10-30T14:47:54.089500Z

ok 0.3.3 is up on Clojars

❤️ 1
Jakub Holý 2020-10-30T19:13:50.091900Z

So cool! With the latest cryogen-asciidoc 0.3.3 I can finally write text like > Now I am talking about abbr:AOP["Aspect-Orinted Programming"], an important topic. to get Now I am talking about <abbr title="Aspect-Orinted Programming">AOP</abbr>, an important topic. given that I have this macro

(defn ^{:extension/types #{:inline :block}} abbr
  "abbr:AOP[\"Aspect-Oriented Programming\"] -> abbr with title."
  [^BaseProcessor this ^ContentNode parent ^String target attributes]
  ;; Returning a string is "deprecated" but still possible and since there is no
  ;; other way...
  ;; See <https://discuss.asciidoctor.org/How-to-create-inline-macro-producing-HTML-In-AsciidoctorJ-td8313.html>
  (str "&lt;abbr title=\"" (get attributes "1" "N/A") "\"&gt;" target "&lt;/abbr&gt;"))
and register it properly via config.edn :
:asciidoctor          {:extensions {"abbr" my.ns/abbr}}
😻

❤️ 2
Jakub Holý 2020-10-30T19:38:33.093400Z

This (likely my last for a while) PR adds support for #tools-deps to a newly created cryogen site so that it can be used instead of #leiningen , making it much easier to switch to different local / git+sha versions of libraries: https://github.com/cryogen-project/cryogen/pull/221

👍 1
seancorfield 2020-10-30T19:57:57.094400Z

@holyjak Thank you! As someone who recently had to install Leiningen on my laptop just to run Cryogen, I appreciate the future ability to use the CLI instead!

❤️ 1