Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update local docs script
- Loading branch information
Showing
3 changed files
with
26 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Run me with: | ||
# | ||
# $ watchr docs.watchr | ||
|
||
def run_rdoc | ||
system('rake --silent rdoc') | ||
end | ||
|
||
def run_yard | ||
print "\nUpdating yardocs... " | ||
system('yardoc -o doc/yard --readme README.rdoc --files LICENSE') | ||
print "done.\n" | ||
end | ||
|
||
def document | ||
run_rdoc | ||
run_yard | ||
end | ||
|
||
watch( '(lib|bin)/.*\.rb' ) { document } | ||
watch( 'README.rdoc' ) { document } | ||
watch( 'TODO.txt' ) { document } | ||
watch( 'LICENSE' ) { document } | ||
|
||
|
||
# vim:ft=ruby |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.