lib/sdoc_helpers/pages.rb in sdoc-helpers-0.1.2 vs lib/sdoc_helpers/pages.rb in sdoc-helpers-0.1.3
- old
+ new
@@ -1,8 +1,15 @@
require 'rake/rdoctask'
readme = Dir['*'].grep(/README/)[0]
files = [ readme, 'LICENSE', 'lib' ]
+
+# any markdown files in the root
+files += Dir['*.md']
+
+# any files that are ALLCAPS
+files += Dir['*'].select { |file| file =~ /^[A-Z]$/ }
+
files.push('CONTRIBUTORS') if Dir['*'].include?('CONTRIBUTORS')
Rake::RDocTask.new do |rdoc|
rdoc.main = readme
rdoc.rdoc_files = files