$ hg --version
»Home
»FAQ
»a2x
»API
|
AsciiDoc InstallationTable of Contents
PrerequisitesSee the README page. Installing from the Mercurial repositoryThe AsciiDoc Mercurial repository is hosted by ShareSource. ShareSource is a Mercurial friendly website for hosting Open Source projects. To browse the repository go to http://hg.sharesource.org/asciidoc/. Installing from the repository is an easy way to install AsciiDoc if you don’t have an up to date packaged version or want to get the latest version from the trunk:
Use the Mercurial pull command to update your AsciiDoc repository. Distribution tarball installationThe distribution source tarballs can be downloaded from the SourceForge http://sourceforge.net/projects/asciidoc/. If your flavor or UNIX or Linux does not have a packaged AsciiDoc distribution or if you prefer to install the latest AsciiDoc version from source use the configure shell script in the tarball root directory. The autoconf(1) generated configure script creates a make file that is tailored for your system. To install: $ tar -xzf asciidoc-8.4.5.tar.gz $ cd asciidoc-8.4.5 $ ./configure $ sudo make install To install the documentation: $ sudo make docs To uninstall AsciiDoc: $ sudo make uninstall If Vim is installed on your system the AsciiDoc Vim syntax highlighter and filetype detection scripts will be install in the global Vim configuration file directory (asciidoc.vim in the syntax directory and asciidoc_filetype.vim in the ftdetect directory). Prepackaged AsciiDoc installationThe following platform specific AsciiDoc packages are available:
See also Packager Notes in the AsciiDoc User Guide. Microsoft Windows installationAsciiDoc is developed and tested on Linux but there seem to be quite a few people using it on Windows. To install AsciiDoc on Windows unzip the distribution Zip file contents to a new folder: $ mkdir asciidoc $ cd asciidoc $ unzip ../asciidoc-8.4.5.zip Testing your installationTest out asciidoc by changing to the AsciiDoc application directory and convert the User Guide document (./doc/asciidoc.txt) to XHTML (./doc/asciidoc.html): $ python asciidoc.py doc/asciidoc.txt testasciidoc offers a more extensive set of conformance tests: $ python ./tests/testasciidoc.py update |