Note
|
JBoss Forge needs to be installed. More info on the JBoss Forge website. |
-
Run Forge
forge
-
Install the jboss forge asciidoctor addon
addon-install-from-git --url https://github.com/mgreau/asciidoctor-forge-addon.git --coordinate org.jboss.forge.addon.asciidoctor:asciidoctor-forge-addon,1.0.0-SNAPSHOT
-
create a new forge project
project-new --named myproject
-
setup asciidoctor for Html5 outpout
asciidoctor-setup --useAsciidoctorDiagram -a toc=right sourceHighlighter=coderay icons=font sectanchors
-
build the project with forge
build
-
open the generated file
open target/generated-docs/manual.html
-
create a new forge project
project-new --named myproject
-
setup asciidoctor for PDF outpout
asciidoctor-setup --converter pdf -a toc sectanchors idprefix=a_ idseparator=_
-
build the project with forge
build
-
open the generated file
open target/generated-docs/manual.pdf
Yes, you're right, I will try to be as close as possible to the Asciidoctor CLI.
I've updated code and doc :
=
So, you can execute the command below :
asciidoctor-setup --converter pdf -a sectanchors idprefix=a_ idseparator=_
I don't know if it's possible to support severals times the
-a
alias in the same command.Maybe @gastaldi can help on this ?