Asciidoctor Template: A feature-rich example for beautiful HTML, PDF and RevealJS Presentation documents
Install Ruby, then install the Ruby Gems asciidoctor
, asciidoctor-pdf
, asciidoctor-revealjs
, asciidoctor-diagram
, asciidoctor-kroki
and asciidoctor-chart
.
To use the script, also install inotify-tools
and pandoc
.
Check workshop/workshop-installation.adoc
for detailed instructions.
Iโd suggest Visual Studio Code as you editor, as it offers several extension supporting Asciidoctor-based authoring. I recommend installing the extensions:
-
AsciiDoc from asciidoctor
-
AsciiDoc Slides from flobilosaurus
-
vscode-pdf for inline PDF preview
-
Code Spell Checker and optionally additional dictionaries for spell-checking.
There are two template documents in this repository
presentation.adoc
-
This is a template for an asciidoctor-revealjs based presentation. It assumes in-depth knowledge of the Asciidoctor methods, which are descripted int the workshop materials. This template relies on
themes/presentation.css
as a styling template. document.adoc
-
This is a small template file for a potentially large document. This template relies on
themes/document.css
as a styling template for web/HTML andthemes/pdfstyle.yml
for PDF generation.
There are several scripts, which ease up your daily operations. In general they restart the rendering on any changes on your *.adoc
-files.
render-presentation
-
renders
presentation.adoc
via asciidoctor-revealjs into a HTML presentation, opens the default webbrowser and rerenders the generated artefacts on changes. render-html
-
Same as
render-presentation
, but rendersdocument.adoc
using plainasciidoctor
into a file render-pdf
-
Same as
render-html
, but renders thedocument.adoc
into a PDF file