public
Description: A modern, pretty RDoc template
Homepage: http://blog.evanweaver.com/files/doc/fauna/allison/
Clone URL: git://github.com/fauna/allison.git
evan (author)
Sun Mar 09 13:10:41 -0700 2008
commit  1d74eb7e5afe300f1064b174f71a7c9362836e3c
tree    088392777287dd613a2af9227f22dbd369b99e41
parent  3f00a49e7967bc7d9f20b59934a357069a7a7941
name age message
file CHANGELOG Mon Jan 21 10:13:53 -0800 2008 Remove wrong copyright notices (technomancy). [evan]
file LICENSE Thu Aug 02 19:02:28 -0700 2007 the svn shuffle git-svn-id: http://fauna.ruby... [evan]
file Manifest Sun Mar 09 13:08:13 -0700 2008 Clean up some comments; fix a documentation error. [evan]
file README Sun Mar 09 13:08:13 -0700 2008 Clean up some comments; fix a documentation error. [evan]
file Rakefile Sun Mar 09 13:10:41 -0700 2008 Update copyright notice for 2008. [evan]
file TODO Sun Mar 09 13:08:13 -0700 2008 Clean up some comments; fix a documentation error. [evan]
directory bin/ Wed Nov 07 22:03:40 -0800 2007 big shuffle, patch up readme [evan]
directory contrib/ Mon Aug 13 14:52:46 -0700 2007 phlip's rdoc hacks [evan]
directory lib/ Sun Mar 09 13:10:41 -0700 2008 Update copyright notice for 2008. [evan]
README
Allison

A modern, pretty RDoc template.

== License

Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file. 

The public certificate for this gem is 
here[http://rubyforge.org/frs/download.php/25331/evan_weaver-original-public_cert.pem]. 

If you use this software, please {make a donation}[http://blog.evanweaver.com/donate/], or {recommend 
Evan}[http://www.workingwithrails.com/person/7739-evan-weaver] at Working with Rails.

== Installation

  sudo gem install allison

== Usage
  
To use the template, just run <tt>allison</tt> with your normal RDoc options. For example:

  $ allison --title 'My RDoc' --line-numbers --main README --promiscuous *
  
Note that some options like <tt>--one-file</tt> and <tt>--diagram</tt> might not work well.

= Extras

== Rake task

You can set up a Rake task if you want. First, find the path to your local machine's template by running <tt>allison 
----path</tt>. Then add something like the following to your <tt>Rakefile</tt>:
    
  require 'rake/rdoctask'
  
  Rake::RDocTask.new do |rdoc|
        files = ['README', 'LICENSE', 'CHANGELOG', 
                 'lib/**/*.rb', 'doc/**/*.rdoc', 'test/*.rb']
        rdoc.rdoc_files.add(files)
        rdoc.main = 'README'
        rdoc.title = 'My RDoc'
        rdoc.template = '/path/to/gems/allison-2.0/lib/allison'
        rdoc.rdoc_dir = 'doc'
        rdoc.options << '--line-numbers' << '--inline-source'
  end
  
Now you can run <tt>rake rdoc</tt> to invoke the task. Also, some versions of RDoc require <tt>.rb</tt> to be appended 
to the template path.

== Sample

http://blog.evanweaver.com/files/allison_release.png

== Generating documentation for Rails

If you want to generate documentation for Ruby on Rails, there is a handy trick. Rails’ RDoc tasks obey the <t
t>template</tt> environment variable. For instance, to document ActiveRecord, run:

  cd vendor/rails/activerecord/
  template=`allison --path` rake rerdoc

== Reporting problems

The support forum is here[http://rubyforge.org/forum/forum.php?forum_id=16451].

Patches and contributions are very welcome. Please note that contributors are required to assign copyright for their 
additions to Cloudburst, LLC.

== Further resources

* http://blog.evanweaver.com/articles/2007/11/08/usability-redesign-for-the-allison-template
* http://blog.evanweaver.com/articles/2006/11/15/allison-released
* http://blog.evanweaver.com/articles/2006/11/12/allison-an-rdoc-template