Permalink
Browse files

merged env f0a4658

  • Loading branch information...
2 parents 908201d + f0a4658 commit f3c74b548abcdc8b4f1d9a63d95e2598b16fac70 Richard Metzler committed Jun 15, 2011
View
@@ -1,4 +1,5 @@
.DS_Store
.sass-cache
output/*
-tmp/*
+tmp/
+.*.swp*
View
@@ -4,3 +4,5 @@ gem 'nanoc'
gem 'haml'
gem 'compass'
gem 'grid-coordinates'
+gem 'kramdown'
+gem 'coderay'
View
@@ -2,6 +2,7 @@ GEM
remote: http://rubygems.org/
specs:
chunky_png (1.2.0)
+ coderay (0.9.8)
compass (0.11.3)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
@@ -11,6 +12,7 @@ GEM
grid-coordinates (1.1.4)
compass (>= 0.10.5)
haml (3.1.2)
+ kramdown (0.13.3)
nanoc (3.1.7)
nanoc3 (>= 3.1.7)
nanoc3 (3.1.7)
@@ -21,7 +23,9 @@ PLATFORMS
ruby
DEPENDENCIES
+ coderay
compass
grid-coordinates
haml
+ kramdown
nanoc
View
@@ -1,9 +1,5 @@
-nanoc-bootstrap
-===============
-
-
-This project provides an starting point for integrating nanoc with HAML, SASS, Compass and jQuery.
+# Nanoc Bootstrap Project
+Contains a very basic nanoc3 project that uses Haml for markup and Compass/Sass for style
Use `$ bundle install` to fetch all dependencies.
-
View
29 Rules
@@ -3,20 +3,41 @@ require 'compass'
Compass.add_project_configuration 'config/compass.config'
compile '/stylesheets/*/' do
- filter :sass, Compass.sass_engine_options
+ case item[:extension]
+ when /sass$/, /scss$/: filter :sass, Compass.sass_engine_options
+ else nil
+ end
end
-
route '/stylesheets/*/' do
item.identifier.chop + '.css'
end
+compile '/scripts/*/' do
+ nil
+end
+route '/scripts/*/' do
+ item.identifier.chop + '.' + item[:extension]
+end
+
+compile '/static/*/' do
+ nil
+end
+route '/static/*/' do
+ item.identifier.chop + '.' + item[:extension]
+end
+
compile '*' do
- filter :haml
+ case item[:extension]
+ when /haml$/: filter :haml
+ when /markdown$/, /md$/: filter :kramdown
+ when /erb$/: filter :erb
+ end
+ filter :colorize_syntax
layout 'default'
end
route '*' do
item.identifier + 'index.html'
end
-layout '*', :haml, :format => :html5
+layout '*', :haml, :format => :html5
View
@@ -1,4 +1,5 @@
---
+text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'php', 'rb', 'sass', 'txt', 'scss' ]
output_dir: output
data_sources:
- items_root: /
View
@@ -5,4 +5,9 @@ project_path = "."
css_dir = "output/stylesheets"
sass_dir = "content/stylesheets"
images_dir = "output/images"
-output_style = :expanded
+output_style = :expanded
+
+sass_options = {
+ :syntax => :scss
+}
+
View
@@ -1,2 +0,0 @@
----
-title: Home
Oops, something went wrong.
View
No changes.
@@ -1,11 +0,0 @@
-@import compass/utilities
-@import grid-coordinates
-
-body
- font-family: Arial, Verdana, Helvetica, Times, "Times New Roman", sans-serif
- padding-top: 30px
- padding-left: 50px
- p
- font-size: 16px
- h1
- margin-top: 0
@@ -0,0 +1,8 @@
+@import "compass/utilities";
+@import "blueprint";
+
+@include blueprint;
+
+body {
+
+}
@@ -1,2 +0,0 @@
----
-filter: sass
View
@@ -0,0 +1,10 @@
+!!!
+%html
+ %head
+ %title
+ = "Nanoc Template - #{@item[:title]}"
+ %script{ :src => relative_path_to('/scripts/jquery-1.4.2.min.js') }
+ %link{ :href => relative_path_to("/stylesheets/styles.css"), :rel => "stylesheet", :type => "text/css", :media => "screen" }
+ %body
+ .container
+ = yield
View
@@ -1,8 +0,0 @@
-!!!
-%html
- %head
- %title
- = "Nanoc Template - #{@item[:title]}"
- %link{ :href => "stylesheets/styles.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
- %body
- = yield
View
@@ -1,2 +0,0 @@
---- {}
-
View
@@ -1,2 +1,5 @@
# All files in the 'lib' directory will be loaded
# before nanoc starts compiling.
+
+include Nanoc3::Helpers::LinkTo
+

0 comments on commit f3c74b5

Please sign in to comment.