about summary refs log tree commit homepage
path: root/lib/wrongdoc/rdoc_options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wrongdoc/rdoc_options.rb')
-rw-r--r--lib/wrongdoc/rdoc_options.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/wrongdoc/rdoc_options.rb b/lib/wrongdoc/rdoc_options.rb
new file mode 100644
index 0000000..15474f4
--- /dev/null
+++ b/lib/wrongdoc/rdoc_options.rb
@@ -0,0 +1,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