summaryrefslogtreecommitdiff
path: root/lib/rdoc/generator/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-18 13:48:12 +0900
committergit <svn-admin@ruby-lang.org>2021-09-03 19:13:15 +0900
commit76c7388c1f41fb0ae3dacda0d9c02e7562a6655d (patch)
tree8a6100bacc26905c6a3a74098d3d8174d929a667 /lib/rdoc/generator/template
parent33676a7aa6a9f10c72a811f4b6b6ad08958f2bca (diff)
[ruby/rdoc] Add tests for `--template-stylesheets` option
Also flattens `@options.template_stylesheets` when parsing the command lines. Fixes #205 Fixes #828 too https://github.com/ruby/rdoc/commit/857002a763
Diffstat (limited to 'lib/rdoc/generator/template')
-rw-r--r--lib/rdoc/generator/template/darkfish/_head.rhtml4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rdoc/generator/template/darkfish/_head.rhtml b/lib/rdoc/generator/template/darkfish/_head.rhtml
index e61fce1b9a..4f331245c3 100644
--- a/lib/rdoc/generator/template/darkfish/_head.rhtml
+++ b/lib/rdoc/generator/template/darkfish/_head.rhtml
@@ -15,8 +15,6 @@
<link href="<%= asset_rel_prefix %>/css/fonts.css" rel="stylesheet">
<link href="<%= asset_rel_prefix %>/css/rdoc.css" rel="stylesheet">
-<%- if @options.template_stylesheets.flatten.any? then -%>
-<%- @options.template_stylesheets.flatten.each do |stylesheet| -%>
+<%- @options.template_stylesheets.each do |stylesheet| -%>
<link href="<%= asset_rel_prefix %>/<%= File.basename stylesheet %>" rel="stylesheet">
-<%- end -%>
<%- end -%>