Skip to content

Commit d42c1f5

Browse files
committed
Make darkfish generate files for non-text pages
1 parent dbcfd02 commit d42c1f5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/rdoc/generator/darkfish.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def generate_file_files
387387
@files.each do |file|
388388
current = file
389389

390-
if file.text? and page_file.exist? then
390+
if page_file.exist? then
391391
generate_page file
392392
next
393393
end

test/rdoc/rdoc_generator_darkfish_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def test_generate
9898
assert_file 'Klass/Inner.html'
9999
assert_file 'table_of_contents.html'
100100
assert_file 'js/search_index.js'
101+
assert_file 'file_rb.html'
101102

102103
assert_hard_link 'css/rdoc.css'
103104
assert_hard_link 'css/fonts.css'

0 commit comments

Comments
 (0)