add yard documentation config

This commit is contained in:
wvengen 2014-05-23 16:15:27 +02:00
parent ea2ae21923
commit 24b0628825
5 changed files with 11 additions and 1 deletions

2
.gitignore vendored
View file

@ -13,6 +13,8 @@ public/**/*_cached.*
.get-dump.yml .get-dump.yml
.sass-cache/ .sass-cache/
doc/app/ doc/app/
doc/api/
.yarddoc/
# Deployment tools # Deployment tools
Capfile Capfile
config/deploy.rb config/deploy.rb

1
.yardopts Normal file
View file

@ -0,0 +1 @@
-o doc/api --plugin yard-activerecord --no-private --protected app/**/*.rb db/schema.rb - *.md doc/**/*.md LICENSE

View file

@ -78,6 +78,8 @@ end
group :development, :test do group :development, :test do
gem 'ruby-prof', require: false gem 'ruby-prof', require: false
gem 'yard-activerecord', require: false
#gem 'yard-rails-plugin', github: 'ogeidix/yard-rails-plugin', tag: 'v0.0.1', require: false
end end
group :test do group :test do

View file

@ -386,6 +386,9 @@ GEM
rinku rinku
xpath (2.0.0) xpath (2.0.0)
nokogiri (~> 1.3) nokogiri (~> 1.3)
yard (0.8.7.4)
yard-activerecord (0.0.11)
yard (>= 0.8.3)
PLATFORMS PLATFORMS
ruby ruby
@ -453,3 +456,4 @@ DEPENDENCIES
twitter-bootstrap-rails twitter-bootstrap-rails
uglifier (>= 1.0.3) uglifier (>= 1.0.3)
whenever whenever
yard-activerecord

View file

@ -4,6 +4,7 @@ Foodsoft
[![Coverage Status](https://coveralls.io/repos/foodcoops/foodsoft/badge.png?branch=master)](https://coveralls.io/r/foodcoops/foodsoft?branch=master) [![Coverage Status](https://coveralls.io/repos/foodcoops/foodsoft/badge.png?branch=master)](https://coveralls.io/r/foodcoops/foodsoft?branch=master)
[![Code Climate](https://codeclimate.com/github/foodcoops/foodsoft.png)](https://codeclimate.com/github/foodcoops/foodsoft) [![Code Climate](https://codeclimate.com/github/foodcoops/foodsoft.png)](https://codeclimate.com/github/foodcoops/foodsoft)
[![Dependency Status](https://gemnasium.com/foodcoops/foodsoft.png)](https://gemnasium.com/foodcoops/foodsoft) [![Dependency Status](https://gemnasium.com/foodcoops/foodsoft.png)](https://gemnasium.com/foodcoops/foodsoft)
[![yard docs](http://b.repl.ca/v1/yard-docs-blue.png)](http://rubydoc.info/github/foodcoops/foodsoft/frames)
Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling). Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling).