summaryrefslogtreecommitdiff
path: root/lib/wrongdoc/rdoc_options.rb
blob: 15474f4e8357eba0c6f4871bc7baa51c4ef6eb7c (plain)
1
2
3
4
5
6
7
8
9
10
11
module Wrongdoc::RdocOptions
  include Wrongdoc::Readme

  def rdoc_options
    webcvs = URI.parse(Wrongdoc.config[:cgit_url])
    webcvs.path += "/tree"
    webcvs = "#{webcvs}/%s"
    _, _, title = readme_metadata
    [ '-t', title, '-W', webcvs ]
  end
end