git clone https://github.com/aim42/aim42.git
cd aim42
docker run -it -v $(pwd):/documents/ asciidoctor/docker-asciidoctor
asciidoctor --doctype book -a imagesdir=../resources/images -a icons=font -a toc=left -a sectlink=true -a sectanchors=true -a numbered=true, -a source-highlighter=coderay -a coderay-css=class -a stylesheet=aim42.css -a stylesdir=../resources/css/ -a version=0.8.0 -a data-uri=true --out-file a.html --source-dir src/main/asciidoc/ src/main/asciidoc/index.adoc
Note: data-uri
will include the image content in the HTML; see here.
Directly create the epub via
asciidoctor-epub3 --doctype book -a imagesdir=../resources/images -a icons=font -a toc=left -a sectlink=true -a sectanchors=true -a numbered=true, -a source-highlighter=coderay -a coderay-css=class -a stylesheet=aim42.css -a stylesdir=../resources/css/ -a version=0.8.0 -a data-uri=true --out-file a.epub --source-dir src/main/asciidoc/ src/main/asciidoc/index.adoc
will not contain the images.
Instead import the generated HTML using calibre and convert to EPUB.