Table of Contents
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
@mojavelinux @gastaldi @lincolnthree hi guys, a first version for the "asciidoctor shell" feature with resource monitor is available on github. So you can test it with the following commands :
forge
track-changes
asciidoctor -a stylesheet! src/docs/asciidoc/sample.adoc
Then open the sample.adoc file and make any update in the document, save it and wait a few second until the asciidoctor processor converts the sample.adoc to a sample.html output.