Liking cljdoc? Tell your friends :D

cryogen-asciidoc

Clojars Project

A Clojure library to provide AsciiDoc rendering to the cryogen-core compiler

Usage

Add the latest cryogen-asciidoc dependency to the project.clj of your generated Cryogen blog.

Configuration

You can set AsciidoctorJ Options in Cryogen's config.edn under the key :asciidoctor (with either string or keyword keys). They will be passed directly to its .convert method. The most interesting option is :attributes that enables you to set AsciiDoctor attributes via the API.

Example:

{:site-title  "AsciiDoctor test"
 ;...
 :asciidoctor {:attributes {"icons" "font"}}}

Notice that you need to add additional resources to your site for some of the attributes to have the desired effect. For example for :icons: font you likely need to add asciidoctor.css or a variant of it (but it will crash with your Cryogen theme so you might want to extract / create a minimal subset of your own) and FontAwesome.

License

Copyright © 2015 Dmitri Sotnikov yogthos@gmail.com

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation? These fine people already did:
Jakub Holy, lacarmen, Stefan Pfeiffer, DL1ELY, Yogthos & Dmitri Sotnikov
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close