Skip to content

Commit

Permalink
Merge pull request #335 from zzak/darkfish-css-to-folder
Browse files Browse the repository at this point in the history
Move Darkfish css files under ./css directory
  • Loading branch information
drbrain committed Dec 7, 2014
2 parents e4eac00 + adb5c5d commit 185463f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Manifest.txt
Expand Up @@ -55,7 +55,7 @@ lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml
lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml
lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
lib/rdoc/generator/template/darkfish/class.rhtml
lib/rdoc/generator/template/darkfish/fonts.css
lib/rdoc/generator/template/darkfish/css/fonts.css
lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf
lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf
lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf
Expand Down Expand Up @@ -92,7 +92,7 @@ lib/rdoc/generator/template/darkfish/js/darkfish.js
lib/rdoc/generator/template/darkfish/js/jquery.js
lib/rdoc/generator/template/darkfish/js/search.js
lib/rdoc/generator/template/darkfish/page.rhtml
lib/rdoc/generator/template/darkfish/rdoc.css
lib/rdoc/generator/template/darkfish/css/rdoc.css
lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml
lib/rdoc/generator/template/darkfish/servlet_root.rhtml
lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
Expand Down
4 changes: 2 additions & 2 deletions lib/rdoc/generator/darkfish.rb
Expand Up @@ -62,14 +62,14 @@ class RDoc::Generator::Darkfish

BUILTIN_STYLE_ITEMS = # :nodoc:
%w[
fonts.css
css/fonts.css
fonts/Lato-Light.ttf
fonts/Lato-LightItalic.ttf
fonts/Lato-Regular.ttf
fonts/Lato-RegularItalic.ttf
fonts/SourceCodePro-Bold.ttf
fonts/SourceCodePro-Regular.ttf
rdoc.css
css/rdoc.css
]

##
Expand Down
4 changes: 2 additions & 2 deletions lib/rdoc/generator/template/darkfish/_head.rhtml
Expand Up @@ -9,8 +9,8 @@
<script src="<%= asset_rel_prefix %>/js/jquery.js"></script>
<script src="<%= asset_rel_prefix %>/js/darkfish.js"></script>

<link href="<%= asset_rel_prefix %>/fonts.css" rel="stylesheet">
<link href="<%= asset_rel_prefix %>/rdoc.css" rel="stylesheet">
<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| %>
<link href="<%= asset_rel_prefix %>/<%= File.basename stylesheet %>" rel="stylesheet">
Expand Down
4 changes: 2 additions & 2 deletions test/test_rdoc_generator_darkfish.rb
Expand Up @@ -76,8 +76,8 @@ def test_generate
assert_file 'table_of_contents.html'
assert_file 'js/search_index.js'

assert_hard_link 'rdoc.css'
assert_hard_link 'fonts.css'
assert_hard_link 'css/rdoc.css'
assert_hard_link 'css/fonts.css'

assert_hard_link 'fonts/SourceCodePro-Bold.ttf'
assert_hard_link 'fonts/SourceCodePro-Regular.ttf'
Expand Down

0 comments on commit 185463f

Please sign in to comment.