Skip to content

Commit 4b8eab4

Browse files
committed
📚 Use .document and .rdoc_options, where possible
1 parent 94a7b6d commit 4b8eab4

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.document

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.rdoc
2+
*.md
3+
lib

.rdoc_options

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
charset: UTF-8
3+
main_page: README.md
4+
markup: rdoc
5+
title: net-imap # rake task override's title to add the version number
6+
op_dir: doc
7+
# vim:ft=yaml

rakelib/rdoc.rake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ class RDoc::Markup::ToHtml
4646
end
4747

4848
RDoc::Task.new do |doc|
49-
doc.main = "README.md"
5049
doc.title = "net-imap #{Net::IMAP::VERSION}"
5150
doc.rdoc_dir = "doc"
52-
doc.rdoc_files = FileList.new %w[lib/**/*.rb *.rdoc *.md]
5351
doc.options << "--template-stylesheets" << "docs/styles.css"
5452
doc.generator = "darkfish" # TODO: fix issues with aliki
5553
end

0 commit comments

Comments
 (0)