Created
March 7, 2017 02:42
-
-
Save localredhead/a78de21bd8f6e658cdbc2f8188f10aee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rdoc/task' | |
namespace :doc do | |
namespace :generate do | |
## to regenerate documentation | |
## bundle exec rake doc:generate:reapi | |
RDoc::Task.new :api do |rd| | |
# config example | |
# http://snipplr.com/view/27986/ | |
rd.rdoc_dir = 'doc/api/v2' | |
rd.rdoc_files.include 'app/controllers/api/v2/**/*\.rb', 'doc/api.md', 'doc/commands.md', 'doc/rest.md' | |
rd.rdoc_files.exclude 'app/controllers/api/v2/ml/**/*\.rb' | |
rd.options << '--line-numbers' | |
rd.options << '--all' | |
rd.title = 'Platform API (beta) 0.2.0' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment