Asciidoctor Diagram is a RubyGem, which can be installed using the
You can install the Asciidoctor Diagram gem by typing
gem install in the CLI.
$ gem install asciidoctor-diagram
To install the gem using Bundler, first add the following entry to your project’s Gemfile.
bundle in the CLI.
Asciidoctor Diagram depends on external tools to generate images.
In most cases it will locate these tools automatically for you by looking for specific executables in each directory in the
PATH environment variable.
In case you’ve installed a tool in a way where the executable is not in the
PATH, you can override its location manually using document attributes.
If, for instance, you installed
/home/me/diag_tool/bin and this path is not included in the
PATH you can specify its location on the command line
$ asciidoctor -a diag_tool=/home/me/actdiag/bin/diag_tool -r asciidoctor-diagram sample.adoc
The exact document attributes to use are described in the documentation of each diagram type.