Fossil Backend for AsciiDoc
To install the Fossil plugin download fossil.zip and install it using the AsciiDoc (you will need AsciiDoc version 8.6.6 or newer):
asciidoc --backend install fossil.zip
Use the 'fossil' backend as you would the built-in backends then pipe the output into Fossil. For example, this command will create a Wiki page called 'AsciiDoc' in the current Fossil repository:
asciidoc -b fossil -a iconsdir=./icons -o - asciidoc.txt | fossil wiki create AsciiDoc
This command updates the existing wiki page:
asciidoc -b fossil -a iconsdir=./icons -o - asciidoc.txt | fossil wiki commit AsciiDoc
Wiki HTML limitations
By default the Fossil wiki formatting rules enforce an HTML subset. If you want richer HTML wiki pages you could enable the Fossil 'Use HTML as wiki markup language' configuration option, but this is not advisable because:
It is not a supported option.
[…]are translated to HTML links which in turn precludes the use of HTML embedded 'script' and 'style' elements.
Keep in mind that wikis are designed to allow casual users to enter short relatively simple notes. Project documentation (which is often longer and more complex) is usually better served using Fossil’s Embedded Documentation feature.
Another gotcha is that currently the Fossil web server does not follow symlinks, instead it displays the content of the symlink file.