FooBarWidget / mizuho

Documentation formatting tool. Converts Asciidoc input into nicely formatted HTML. Multiple templates are supported.

This URL has Read+Write access

mizuho /
name age message
file .gitignore Tue Nov 04 06:33:11 -0800 2008 Add an 'install' Rake task. [Hongli Lai (Phusion)]
file LICENSE.txt Sun Jul 20 15:49:46 -0700 2008 Add license. [Hongli Lai (Phusion)]
file README.markdown Mon Oct 27 04:13:30 -0700 2008 Fix README indenting for proper markdown render... [Hongli Lai (Phusion)]
file Rakefile Fri Jan 09 15:57:35 -0800 2009 Bundle MacOS X binaries for GNU source-highlight. [Hongli Lai (Phusion)]
directory asciidoc/ Thu Jan 08 16:31:31 -0800 2009 Patch Asciidoc so that it looks for its configu... [Hongli Lai (Phusion)]
directory bin/ Tue Nov 04 06:10:21 -0800 2008 Add a commandline option to Mizuho for specifyi... [Hongli Lai (Phusion)]
directory lib/ Fri Jan 09 15:57:35 -0800 2009 Bundle MacOS X binaries for GNU source-highlight. [Hongli Lai (Phusion)]
file mizuho.gemspec Thu Nov 05 02:18:33 -0800 2009 Make sure the source-highlight binary works on ... [Hongli Lai (Phusion)]
directory source-highlight/ Thu Nov 05 02:18:33 -0800 2009 Make sure the source-highlight binary works on ... [Hongli Lai (Phusion)]
directory templates/ Tue Sep 09 05:09:53 -0700 2008 Add sidebar block styling. [Hongli Lai (Phusion)]
directory test/ Thu Jan 08 16:56:27 -0800 2009 Invalidate the unit test cache whenever Asciido... [Hongli Lai (Phusion)]
README.markdown

Mizuho documentation formatting tool

Mizuho is a documentation formatting tool, best suited for small to medium-sized documentation. One writes documentation in plain text files, which Mizuho then converts to nicely formatted HTML.

Mizuho supports input files in Asciidoc format. Asciidoc is a text formatting tool, used by e.g. Git for its documentation. Thanks to Asciidoc, Mizuho supports a large number of formatting options.

Under the hood

Mizuho is actually a wrapper around Asciidoc. Asciidoc itself can only generate single-page XHTML output. Mizuho extends Asciidoc by providing multi-page XHTML output support and support for multiple templates.

Features and highlights

  • You can output the documentation in a single XHTML file, or in multiple XHTML files (one per chapter).
  • Output is fully customizable via ERB templates.
  • Based on Asciidoc and supports all Asciidoc formatting commands.
  • Comes bundled with Asciidoc so you don't have to install it yourself. Mizuho Just Works(tm) out-of-the-box.

Requirements

  • hpricot (gem install hpricot)
  • Python (because Asciidoc is written in Python)
  • GNU Source-highlight, if you want syntax highlighting support

Installation

Run the following command as root:

gem install FooBarWidget-mizuho

Usage

First, read the Asciidoc manual to learn the input file format: http://www.methods.co.nz/asciidoc/userguide.html

Next, write an input file and save it in a .txt file.

Finally, convert the .txt file to a single XHTML file with Mizuho, with the default template:

mizuho input.txt

This will generate 'input.html'. Or, you can convert it to multiple XHTML files that also have a different look:

mizuho input.txt --template manualsonrails --multi-page

Take a look at the 'templates' directory for available templates.

Credits

This tool is named after Kazami Mizuho from the 2003 anime 'Onegai Teacher'.