File: doc.rb

package info (click to toggle)
racc 1.4.8-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 868 kB
  • sloc: ruby: 6,176; yacc: 2,077; ansic: 812; sh: 24; makefile: 12
file content (12 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
require 'rake/rdoctask'

Rake::RDocTask.new(:docs) do |rd|
  rd.main = "README.en.rdoc"
  rd.rdoc_files.include(SPEC.files.find_all { |file_name|
    file_name =~ /^(bin|lib|ext)/ || file_name !~ /\//
  })

  title = "#{SPEC.name}-#{SPEC.version} Documentation"

  rd.options << "-t #{title}"
end