forked from sporkmonger/addressable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switching to Yardoc by default for documentation.
- Loading branch information
Bob Aman
committed
Aug 10, 2010
1 parent
da4bb1f
commit 6c052b8
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
require "rake" | ||
|
||
begin | ||
require "yard" | ||
require "yard/rake/yardoc_task" | ||
|
||
namespace :doc do | ||
desc "Generate Yardoc documentation" | ||
YARD::Rake::YardocTask.new do |yardoc| | ||
yardoc.name = "yard" | ||
yardoc.options = ["--verbose"] | ||
yardoc.files = [ | ||
"lib/**/*.rb", "ext/**/*.c", "README", "CHANGELOG", "LICENSE" | ||
] | ||
end | ||
end | ||
|
||
task "clobber" => ["doc:clobber_yard"] | ||
|
||
desc "Alias to doc:yard" | ||
task "doc" => "doc:yard" | ||
rescue LoadError | ||
# If yard isn't available, it's not the end of the world | ||
desc "Alias to doc:rdoc" | ||
task "doc" => "doc:rdoc" | ||
end |