Asciidoctor docker container で日本語が使えるようカスタマイズしたものです。
オリジナルに加えて以下がインストールされています。
-
asciidoctor-stylesheet-factory
-
スタイルシートは
/stylesheets
配下にインストールされています
-
コンテナを起動
docker run --rm -it -v $(pwd):/documents uochan/docker-asciidoctor-jp
PDFの生成
asciidoctor-pdf -r asciidoctor-pdf-cjk-kai_gen_gothic -a pdf-style=KaiGenGothicJP foo.adoc
図形を含むPDFの生成
asciidoctor-pdf -r asciidoctor-diagram -r asciidoctor-pdf-cjk-kai_gen_gothic -a pdf-style=KaiGenGothicJP foo.adoc
HTMLの生成
asciidoctor -a source-highlighter=highlightjs -a stylesheet=/stylesheets/github.css foo.adoc