https://github.com/alejandroSuch/asciidoctor/
477
This Docker container provides:
Download this repo if you don't have any project yet: $ git clone https://github.com/alejandroSuch/asciidoctor-book-template.git bookname $ cd bookname
Build HTML version:
docker run -it -w /opt/ -v $(pwd):/opt/ --rm alexsuch/asciidoctor asciidoctor -D output book.adoc
Build PDF version:
docker run -it -w /opt/ -v $(pwd):/opt/ --rm alexsuch/asciidoctor asciidoctor-pdf -D output book.adoc
Build EPUB version:
docker run -it -w /opt/ -v $(pwd):/opt/ --rm alexsuch/asciidoctor asciidoctor-epub3 -D output book.adoc
Build Kindle version:
docker run -it -w /opt/ -v $(pwd):/opt/ --rm alexsuch/asciidoctor asciidoctor-epub3 -a ebook-format=kf8 -D output book.adoc
In all cases, result will be stored in output dir:
$ tree
.
├── README.adoc
├── book-sample.adoc
├── book.adoc
├── chapters
│ └── cjk.adoc
├── images
│ ├── cover.png
│ └── cover.svg
└── output
├── book-kf8.epub
├── book.epub
├── book.html
├── book.mobi
└── book.pdf
Content type
Image
Digest
Size
66.3 MB
Last updated
almost 10 years ago
docker pull alexsuch/asciidoctor