Method: Wrongdoc::Rdoc#run
- Defined in:
- lib/wrongdoc/rdoc.rb
#run(argv = []) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/wrongdoc/rdoc.rb', line 20 def run(argv = []) rdoc(argv) add_atom("doc/ChangeLog.html", cgit_atom_uri) add_atom("doc/NEWS.html", news_atom_uri) add_atom("doc/README.html", news_atom_uri) # the stock RDoc index page layout lacks a vertical sidebar full of links rdoc_index = "doc/rdoc_index.html" File.exist?(rdoc_index) and File.unlink(rdoc_index) File.rename("doc/index.html", rdoc_index) File.link("doc/README.html", "doc/index.html") end |