Provides Reveal.js backend for asciidoc presentations.
-
SLIDES_PATH
- path to directory inside container with .adoc sources. Default value: /documents/slides -
RESOURCES_PATH
- path to directory inside container contains css, images and all other resources. Default value: ${SLIDES_PATH}/resources -
TARGET_PATH
- path to directory inside container with compiled slides. Default value: /target
|
Default configuration assumes directory hierarchy:
|
docker run -it -p 80:80 -v <PATH_TO_MAIN_DIR>:/documents/ wiktorsztajerowski/asciidoc-presenter:latest
Now go to http://localhost
and enjoy your presentation :)
ℹ️
|
HTML files are names same as source files, so if you have slides.adoc you find your slides on
http://localhost/slides.html
|
💡
|
check container output - it lists the serving files. |
docker run -it -p 80:80 -v <PATH_TO_MAIN_DIR>:/documents/ -e SLIDES_PATH=/documents/custom/path/slides wiktorsztajerowski/asciidoc-presenter:latest
docker run -it -p 80:80 -v <PATH_TO_MAIN_DIR>:/documents/ -e RESOURCES_PATH=/documents/custom/path/to/resources wiktorsztajerowski/asciidoc-presenter:latest
docker run -it -p 80:80 -v <PATH_TO_MAIN_DIR>:/documents/ -v <PATH_TO_TARGET_DIR>:/target wiktorsztajerowski/asciidoc-presenter:latest
docker run -it -p 80:80 -v <PATH_TO_MAIN_DIR>:/documents/ -v <PATH_TO_TARGET_DIR>:/custom/target -e TARGET_PATH=/custom/target wiktorsztajerowski/asciidoc-presenter:latest
Many thanks to the AsciiDoctor team for providing AsciiDoctor Docker Image, which I used as a base for this image.