Skip to content

Commit

Permalink
using yardoc instead of rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
bver committed Sep 8, 2011
1 parent bf7675a commit 02260d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
16 changes: 1 addition & 15 deletions web/doc.html
Expand Up @@ -18,21 +18,7 @@ <h1>Grammatical Evolution Ruby Exploratory Toolkit</h1>
</div>
<div id="content">

<div id="right">
<iframe src="doc/files/geret_rb.html" frameborder="0" width="100%" height="700" scrolling="auto" name="docwin"></iframe>
</div>

<div id="left">
<p>
<iframe src="doc/fr_file_index.html" title="Files" name="Files"></iframe>
</p>
<p>
<iframe src="doc/fr_class_index.html" title="Classes" name="Classes"></iframe>
</p>
<p>
<iframe src="doc/fr_method_index.html" title="Methods" name="Methods"></iframe>
</p>
</div>
<iframe src="_index.html" frameborder="0" width="100%" height="700" scrolling="auto" name="docwin"></iframe>

</div>
</body>
Expand Down
12 changes: 3 additions & 9 deletions web/make_web.rb
Expand Up @@ -7,20 +7,14 @@
require 'redcloth'
Geret = '../'

system "rm -rf lib/ web/"
system "rm -rf web/"
system "mkdir web/"

template = IO.read 'template.html'

index = RedCloth.new( IO.read( Geret + 'README.textile' ) ).to_html
File.open( 'web/index.html', 'w' ) { |f| f.puts template.gsub(/#CONTENT#/, index) }

system "cp -p -r #{Geret}/lib ."
system "cd lib/ && rdoc --diagram --inline-source --main geret.rb"
system "mv lib/doc/ web/"
system "rm -f web/doc/files/*~.html"
system "rm -rf lib/"
system "cp doc.html web/"
system "yardoc --title=GERET --files='#{Geret}/lib/*.rb' --output-dir=web/ #{Geret}/lib/ #{Geret}/algorithm/ #{Geret}/algorithm/support/"

system "cp style.css web/"
system "cp style.css doc.html web/"

0 comments on commit 02260d0

Please sign in to comment.