ADOC is a documentation environment using AsciiDoc as core component. ADOC makes it easy to construct AsciiDoc documentation system. ADOC can make single HTML, chunked HTML, PDF from one plain text data. ADOC supports English and Japanese.
See http://www.methods.co.nz/asciidoc/ for further details.
$ sudo apt-get install git-core
$ sudo apt-get install imagemagick asciidoc dia graphviz mscgen dblatex w3m
$ sudo yum install git
$ sudo yum install ImageMagick asciidoc dia graphviz mscgen dblatex w3m
Note: As of Feb 2013, installing dia with this recipe is not likely to succeed.
$ brew install git
$ brew install imagemagick asciidoc graphviz mscgen w3m
$ curl -O https://raw.github.com/mxcl/homebrew/a2d4d9d832/Library/Formula/dia.rb
$ mv dia.rb /usr/local/Library/Formula
$ brew install dia
$ git clone git://github.com/hibari/hibari-doc.git
$ cd hibari-doc/src/hibari
$ make clean -OR- make realclean
$ make
HTML documentation is written in the ./public_html
directory.
$ cd hibari-doc/src/hibari/website
$ make clean -OR- make realclean
$ make
HTML documentation is written in the ./public_html
directory.
The above recipe was tested on the following platforms:
A fake lang-ja.conf
file will be needed to compile the
Japanese(ja) documents.
$ cd /etc/asciidoc/
$ sudo ln -s lang-en.conf lang-ja.conf
shell_copy
, apply the following
patch. (Tested on Mac OS X 10.6.7 using asciidoc 8.6.4)diff -r -u 8.6.4-orig/bin/a2x.py 8.6.4/bin/a2x.py
--- 8.6.4-orig/bin/a2x.py 2011-04-24 00:50:26.000000000 +0900
+++ 8.6.4/bin/a2x.py 2011-04-24 00:35:55.000000000 +0900
@@ -156,7 +156,10 @@
def shell_copy(src, dst):
verbose('copying "%s" to "%s"' % (src,dst))
if not OPTIONS.dry_run:
- shutil.copy(src, dst)
+ try:
+ shutil.copy(src, dst)
+ except shutil.Error:
+ return
def shell_rm(path):
if not os.path.exists(path):
Only in 8.6.4/etc/asciidoc: lang-ja.conf