Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update local docs script
  • Loading branch information
mynyml committed Sep 8, 2009
1 parent 0030088 commit a2e044e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 33 deletions.
26 changes: 26 additions & 0 deletions docs.watchr
@@ -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
15 changes: 0 additions & 15 deletions rdoc.watchr

This file was deleted.

18 changes: 0 additions & 18 deletions yard.watchr

This file was deleted.

0 comments on commit a2e044e

Please sign in to comment.