1 require 'rake/rdoctask'
2 require 'rakelib/configuration'
11 task :vm => 'doc:vm:html'
15 desc "Remove all generated HTML files under doc/vm"
17 Dir.glob('doc/vm/**/*.html').each do |html|
18 rm_f html unless html =~ /\/?index.html$/
22 desc "Generate HTML in doc/vm"
23 file 'doc/vm/toc.html' => %w[shotgun/lib/instructions.rb] do
24 rbx 'doc/vm/gen_op_code_html.rb'
27 rule '.html' => %w[.txt doc/vm/rdoc.rb] do |t|
28 rbx 'doc/vm/rdoc.rb', t.source, t.name
34 doc/vm/concurrency.html
36 doc/vm/method_dispatch.html
38 doc/vm/rubinius_vs_mri.html
41 doc/vm/vm_interfaces.html
46 desc 'Generate rdoc for kernel, lib and stdlib'
47 Rake::RDocTask.new :rdoc do |rd|
49 rd.title = "Rubinius #{RBX_VERSION} Documentation"
51 rd.rdoc_dir = 'doc/rdoc'
53 rd.rdoc_files.include 'README'
54 rd.rdoc_files.include 'README-DEVELOPERS'
55 rd.rdoc_files.include 'CONTRIBUTORS'
56 rd.rdoc_files.include 'THANKS'
57 rd.rdoc_files.include 'LICENSE'
59 rd.rdoc_files.include 'kernel/core/*.rb'
60 rd.rdoc_files.include 'kernel/bootstrap/*.rb'
61 rd.rdoc_files.include 'kernel/platform/*.rb'
63 rd.rdoc_files.include 'lib/**/*.rb'