Skip to content

Instantly share code, notes, and snippets.

@localredhead
Created March 7, 2017 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save localredhead/a78de21bd8f6e658cdbc2f8188f10aee to your computer and use it in GitHub Desktop.
Save localredhead/a78de21bd8f6e658cdbc2f8188f10aee to your computer and use it in GitHub Desktop.
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