Simple asciidoctor files are compiled as follows:

asciidoctor sourcefile.adoc

If the filecontains graphics, such as ditaa, use:

asciidoctor -r asciidoctor-diagram sourcefile.adoc

Files containing LaTeX code like:

[env.equation]
--
a^{p-1} \equiv 1\ \text{mod}\ p
--

which will convert the code into

a^{p-1} \equiv 1\ \text{mod}\ p