Skip to content

chinasaur/rdoc_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

RDoc::Rails

This package adds Rails-specific information to RDoc generated docs on Rails projects. It could be particularly useful for people wanting to document Rails applications for internal use within a team of developers. It includes RDoc::Parser::Rails based on RDoc::Parser::Ruby as well as RDoc::Generator::Railsfish based on RDoc::Generator::Darkfish

Installation

Currently, this is written as a Rails plugin, although I will look into packaging it as a gem as well. It works with RDoc version 2.4.3, the most current version as of August, 2009. I have tested it only with Rails 2.0, but I would expect it to work for projects written in earlier and later versions of Rails as well.

To install as a Rails plugin, try some variation on one of the following:

ruby script/plugin install git://github.com/chinasaur/rdoc_rails.git
ruby script/plugin install http://github.com/chinasaur/rdoc_rails.git
ruby script/plugin install http://github.com/chinasaur/rdoc_rails.git/

You may then need/want to rename the directory vendor/plugins/rdoc_rails.git/ to just rdoc_rails

After that, you should be good to go. The standard

> rake doc:app

or

> rake doc:reapp

should now run the Rails customized version of RDoc.

Features

Right now there are just two basic features above and beyond the standard Ruby RDoc:

  1. Documentation for ActiveRecord associations on Models

  2. Documentation for methods delegated to other models through the delegate method.

But the infrastructure is all there to make it straightforward to parse additional features in Rails code and generate documentation based on those parsings.

Contributing

I will try to document things better to make it easy for others to contribute additional documentation features. For now, get in touch if you have any questions and fork away.

License

Rdoc::Rails is released under a Creative Commons Attribution 3.0 United States License. Please credit me somewhere in your project’s documentation if you are using this.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages