## Script to create Ajaxy rails rdocs. You need to install jaxdoc before using this.
## Just run this command from the rails/ dir and you're good to go.
## The --include flags are not actually needed, and you may want to add more excludes,
## but you do get the docs with this one =)

rdoc --op docz/ --fmt ajax \
--line-numbers --inline-source \
--include 'railties/CHANGELOG' \
--include 'railties/MIT-LICENSE' \
--include 'railties/README' \
--include 'railties/lib/{*.rb,commands/*.rb,rails_generator/*.rb}' \
--exclude 'railties/test/*' \
--include 'activerecord/README' \
--include 'activerecord/CHANGELOG' \
--include 'activerecord/lib/active_record/**/*.rb' \
--exclude 'activerecord/lib/active_record/vendor/*' \
--exclude 'activerecord/test/*' \
--include 'activeresource/README' \
--include 'activeresource/CHANGELOG' \
--include 'activeresource/lib/active_resource.rb' \
--include 'activeresource/lib/active_resource/*' \
--exclude 'activeresource/test/*' \
--include 'actionpack/README' \
--include 'actionpack/CHANGELOG' \
--include 'actionpack/lib/action_controller/**/*.rb' \
--include 'actionpack/lib/action_view/**/*.rb' \
--exclude 'actionpack/test/*' \
--include 'actionmailer/README' \
--include 'actionmailer/CHANGELOG' \
--include 'actionmailer/lib/action_mailer/base.rb' \
--exclude 'actionmailer/test/*' \
--include 'activesupport/README' \
--include 'activesupport/CHANGELOG' \
--include 'activesupport/lib/active_support/**/*.rb' \
--exclude 'activesupport/test/*' \
--exclude 'activesupport/lib/active_support/vendor/*' \
--exclude 'activemodel/*'