Docker image of asciidoctor that include PlantUML. In order to use japanese for plantuml code, this image is having japanese font(IPA).
Following is command for convert to html.
$ docker run \
-v ${your-asciidoc-file-directory}:/doc/ \
--rm \
aozk/docker-j-asciidoctor \
${asciidoctor-options-if-necessary} \
${asciidoc-file-name}
Also, you can convert to pdf using asciidoctor-pdf.
$ docker run \
-v ${your-asciidoc-file-directory}:/doc/ \
--rm \
-r asciidoctor-pdf \
-r asciidoctor-pdf-cjk \
-b pdf \
aozk/docker-j-asciidoctor \
${asciidoctor-options-if-necessary} \
${asciidoc-file-name}
Follows is example that convert to html from this readme.adoc.
$ docker run -v ${PWD}:/doc/ --rm aozk/docker-j-asciidoctor README.adoc
If you want look help of asciidoctor…
$ docker run -v ${PWD}:/doc/ --rm aozk/docker-j-asciidoctor --help
I think that most people do not want to enter commands that are too long. So I made a simple startup script.
$ adoc ${asciidoctor-options-if-necessary} ${asciidoctor-file-name}
$ apdf ${asciidoctor-options-if-necessary} ${asciidoctor-file-name}
Pull image from dockerhub.
$ docker pull aozk/docker-j-asciidoctor
Or execute docker build
on root directory of this project.
$ docker build -t ${tagname-as-you-like} .