Asciidoctor Builder docker image based on Alpine.
Run Asciidoctor on your asciidoc sources and output the result.
By default the script looks for a index.asc
file in the source directory and build html sources
from it.
The builder needs to have 2 volumes :
-
the source directory
-
the output directory
docker run
-v :/documents/
-v :/output/
cethy/alpine-asciidoctor-builder:micro
note : the host directories can be the same (and must be absolute).
Example usage with a local directory :
docker run \
-v $PWD/doc:/documents/ \
-v $PWD/doc:/output/ \
cethy/alpine-asciidoctor-builder:micro
To output other format than html, just override the OUTPUT_FORMATS
variable :
docker run -it \
-v <host source directory>:/documents/ \
-v <host output directory>:/output/ \
-e OUTPUT_FORMATS="html,epub3"
cethy/alpine-asciidoctor-builder:mini
This particular example will output html
AND epub3
files.
docker run -it \
-v <host source directory>:/documents/ \
-v <host output directory>:/output/ \
-e OUTPUT_FORMATS="html" \
-e OUTPUT_DIR='/output' \
-e INPUT_FILE='index.asc' \
-e INPUT_DIR='/documents' \
-e INPUT_EXTRA_PARAMETERS='' \
cethy/alpine-asciidoctor-builder:<micro|mini|full>
# default
-e OUTPUT_FORMATS="html"
# example full
-e OUTPUT_FORMATS="html,pdf,epub3"
List the output format files, separated by a ,
comma.
Note : the micro
image does not contains this variable.
Default | Options |
---|---|
html |
html , pdf and/or epub3 |
# default
-e OUTPUT_DIR='/output'
Represents the container output directory.
Default | Options |
---|---|
/output |
<any container directory> |
# default
-e INPUT_FILE='index.asc'
Represents the input file given to Asciidoctor
.
Default | Options |
---|---|
index.asc |
<any file name> |
# default
-e INPUT_DIR='/documents'
Represents the input directory where live the INPUT_FILE
.
Default | Options |
---|---|
/documents |
<any container directory> |
# default
-e INPUT_EXTRA_PARAMETERS=''
Represents the extra parameters you want to send to Asciidoctor
.
Default | Options |
---|---|
- | <any acceptable Asciidoctor > |
This variant is the default and contains the full functionality from the official Asciidoctor image (except fopub at the moment). Ideal if you need the full-fledged Asciidoctor in all its glory.
- Asciidoctor
- Aciidoctor Diagram with Graphviz integration so you can use plantuml and graphiz diagrams
- Asciidoctor PDF (alpha)
- Asciidoctor EPUB3 (alpha)
- Source highlighting using CodeRay or Pygments
- Asciidoctor backends
- Asciidoctor-confluence
- Lazybones (for Asciidoctor-revealjs)
This variant is a trimmed down version with basic support for diagrams, support for PDF and EPUB3 formats and confluence. Ideal if you need to export to several formats or make basic diagrams.
- Asciidoctor
- Aciidoctor Diagram
- Asciidoctor PDF (alpha)
- Asciidoctor EPUB3 (alpha)
- Source highlighting using CodeRay
- Asciidoctor-confluence
This variant is a trimmed down version containing only the necessary to build basic asciidoc files with source highlighting. Ideal for building simple documentation to HTML.
- Asciidoctor
- Source highlighting using CodeRay
Note : Support only html
output.
rochdev/docker-alpine-asciidoctor
- Asciidoctor Watcher docker image cethy/alpine-asciidoctor-watcher (on docker hub)
- Asciidoctor livereload environment cethy/asciidoctor-livereload