Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Update Rakefile. (From rdoc to yardoc) (IssueID: #1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akiko Takano committed Apr 19, 2013
1 parent 94f5757 commit af14ada
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
coverage/
doc/
.yardoc/
15 changes: 5 additions & 10 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'yard'

desc 'Default: run unit tests.'
task :default => :test
Expand All @@ -12,13 +12,8 @@ Rake::TestTask.new(:test) do |t|
t.verbose = true
end

desc 'Generate documentation for the redmine_banner plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Redmine Banner'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('app/**/*.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.options = ["--charset", "utf-8"]
YARD::Rake::YardocTask.new(:yardoc) do |t|
files = ['lib/**/*.rb', 'app/**/*.rb'] #exclude test file
t.files = files
t.options += ['--output-dir', './doc']
end

0 comments on commit af14ada

Please sign in to comment.