Merge remote branch 'upstream/master'
This commit is contained in:
commit
3dbfe05409
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,3 +8,4 @@ pkg
|
||||||
Gemfile.lock
|
Gemfile.lock
|
||||||
docs
|
docs
|
||||||
.rvmrc
|
.rvmrc
|
||||||
|
fixtures/test-app/build
|
|
@ -3,4 +3,5 @@
|
||||||
|
|
||||||
- Combine views/ and public/ into a single source/ folder.
|
- Combine views/ and public/ into a single source/ folder.
|
||||||
- Support YAML front-matter
|
- Support YAML front-matter
|
||||||
- Blog-aware
|
- Blog-aware
|
||||||
|
- Replaced Blueprint CSS templates with Susy
|
|
@ -19,7 +19,7 @@
|
||||||
# * Sass (.sass)
|
# * Sass (.sass)
|
||||||
# * Scss (.scss)
|
# * Scss (.scss)
|
||||||
# * Haml (.haml)
|
# * Haml (.haml)
|
||||||
# * Sass (.sass)
|
# * Slim (.slim)
|
||||||
# * Less CSS (.less)
|
# * Less CSS (.less)
|
||||||
# * Builder (.builder)
|
# * Builder (.builder)
|
||||||
# * Liquid (.liquid)
|
# * Liquid (.liquid)
|
||||||
|
|
|
@ -4,10 +4,7 @@ module Middleman
|
||||||
module Features
|
module Features
|
||||||
module Blog
|
module Blog
|
||||||
class << self
|
class << self
|
||||||
def registered(app)
|
def registered(app)
|
||||||
# Depend on FrontMatter
|
|
||||||
app.activate Middleman::Features::FrontMatter
|
|
||||||
|
|
||||||
# Include helpers
|
# Include helpers
|
||||||
app.helpers Middleman::Features::Blog::Helpers
|
app.helpers Middleman::Features::Blog::Helpers
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ module Middleman::Features::DefaultHelpers
|
||||||
else kind.to_s
|
else kind.to_s
|
||||||
end
|
end
|
||||||
source = source.to_s.gsub(/\s/, '')
|
source = source.to_s.gsub(/\s/, '')
|
||||||
ignore_extension = (asset_folder.to_s == kind.to_s) # don't append extension
|
ignore_extension = (kind == :images) # don't append extension
|
||||||
source << ".#{kind}" unless ignore_extension or source =~ /\.#{kind}/
|
source << ".#{kind}" unless ignore_extension or source =~ /\.#{kind}/
|
||||||
result_path = source if source =~ %r{^/} # absolute path
|
result_path = source if source =~ %r{^/} # absolute path
|
||||||
result_path ||= asset_url(source, asset_folder)
|
result_path ||= asset_url(source, asset_folder)
|
||||||
|
|
|
@ -6,12 +6,15 @@ module Middleman::Features::FrontMatter
|
||||||
def registered(app)
|
def registered(app)
|
||||||
app.extend ClassMethods
|
app.extend ClassMethods
|
||||||
|
|
||||||
|
::Tilt::register MarukuTemplate, 'markdown', 'mkd', 'md'
|
||||||
::Tilt::register MarukuTemplate, 'markdown', 'mkd', 'md'
|
::Tilt::register MarukuTemplate, 'markdown', 'mkd', 'md'
|
||||||
::Tilt::register KramdownTemplate, 'markdown', 'mkd', 'md'
|
::Tilt::register KramdownTemplate, 'markdown', 'mkd', 'md'
|
||||||
::Tilt::register BlueClothTemplate, 'markdown', 'mkd', 'md'
|
::Tilt::register BlueClothTemplate, 'markdown', 'mkd', 'md'
|
||||||
::Tilt::register RedcarpetTemplate, 'markdown', 'mkd', 'md'
|
::Tilt::register RedcarpetTemplate, 'markdown', 'mkd', 'md'
|
||||||
::Tilt::register RDiscountTemplate, 'markdown', 'mkd', 'md'
|
::Tilt::register RDiscountTemplate, 'markdown', 'mkd', 'md'
|
||||||
::Tilt::register RedClothTemplate, 'textile'
|
::Tilt::register RedClothTemplate, 'textile'
|
||||||
|
::Tilt::register ERBTemplate, 'erb', 'rhtml'
|
||||||
|
::Tilt::register ErubisTemplate, 'erb', 'rhtml', 'erubis'
|
||||||
end
|
end
|
||||||
alias :included :registered
|
alias :included :registered
|
||||||
end
|
end
|
||||||
|
@ -66,4 +69,13 @@ module Middleman::Features::FrontMatter
|
||||||
class RedClothTemplate < ::Tilt::RedClothTemplate
|
class RedClothTemplate < ::Tilt::RedClothTemplate
|
||||||
include Middleman::Features::FrontMatter::YamlAware
|
include Middleman::Features::FrontMatter::YamlAware
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# ERb
|
||||||
|
class ERBTemplate < ::Tilt::ERBTemplate
|
||||||
|
include Middleman::Features::FrontMatter::YamlAware
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErubisTemplate < ::Tilt::ErubisTemplate
|
||||||
|
include Middleman::Features::FrontMatter::YamlAware
|
||||||
|
end
|
||||||
end
|
end
|
|
@ -1,6 +1,7 @@
|
||||||
require "sass"
|
require "sass"
|
||||||
require "sass/plugin"
|
require "sass/plugin"
|
||||||
require "compass"
|
require "compass"
|
||||||
|
require "susy"
|
||||||
|
|
||||||
module Middleman
|
module Middleman
|
||||||
module Renderers
|
module Renderers
|
||||||
|
|
|
@ -49,6 +49,8 @@ module Middleman
|
||||||
# Activate Webservices Proxy package
|
# Activate Webservices Proxy package
|
||||||
# register Middleman::Features::Proxy
|
# register Middleman::Features::Proxy
|
||||||
|
|
||||||
|
register Middleman::Features::FrontMatter
|
||||||
|
|
||||||
# Activate Lorem helpers
|
# Activate Lorem helpers
|
||||||
register Middleman::Features::Lorem
|
register Middleman::Features::Lorem
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,34 @@
|
||||||
@import "compass"
|
@import "compass"
|
||||||
@import "blueprint"
|
@import "susy"
|
||||||
|
|
||||||
$font-color: #2a2a2a
|
|
||||||
$link-color: #0388a6
|
$link-color: #0388a6
|
||||||
$link-hover-color: #009ce0
|
$link-hover-color: #009ce0
|
||||||
$link-focus-color: $link-color
|
$link-focus-color: false
|
||||||
$link-active-color: $link-color
|
$link-active-color: false
|
||||||
$link-visited-color: $link-color
|
$link-visited-color: false
|
||||||
|
|
||||||
$blueprint-font-family: 'Century Gothic', 'Apple Gothic', 'Helvetica Neue', arial, sans-serif
|
$font-color: #2a2a2a
|
||||||
$blueprint-font-size: 13px
|
$font-family: 'Helvetica Neue', sans-serif
|
||||||
$blueprint-grid-columns: 12
|
$base-font-size: 12px
|
||||||
$blueprint-grid-width: 60px
|
$base-line-height: 18px
|
||||||
$blueprint-grid-margin: 20px
|
|
||||||
|
$total-cols: 12
|
||||||
|
$col-width: 4em
|
||||||
|
$gutter-width: 1em
|
||||||
|
$side-gutter-width: $gutter-width
|
||||||
|
|
||||||
+global-reset
|
+global-reset
|
||||||
|
|
||||||
+blueprint-typography
|
+establish-baseline
|
||||||
|
|
||||||
|
body
|
||||||
|
font-family: $font-family
|
||||||
|
color: $font-color
|
||||||
|
|
||||||
a
|
a
|
||||||
+link-colors($link-color, $link-hover-color, $link-focus-color, $link-active-color, $link-visited-color)
|
+link-colors($link-color, $link-hover-color, $link-focus-color, $link-active-color, $link-visited-color)
|
||||||
|
|
||||||
#main
|
#main
|
||||||
padding: 50px
|
padding: 50px
|
||||||
text-align: center
|
|
||||||
+container
|
+container
|
||||||
|
+susy-grid-background
|
|
@ -1,27 +1,34 @@
|
||||||
@import "compass"
|
@import "compass"
|
||||||
@import "blueprint"
|
@import "susy"
|
||||||
|
|
||||||
$font-color: #2a2a2a
|
|
||||||
$link-color: #0388a6
|
$link-color: #0388a6
|
||||||
$link-hover-color: #009ce0
|
$link-hover-color: #009ce0
|
||||||
$link-focus-color: $link-color
|
$link-focus-color: false
|
||||||
$link-active-color: $link-color
|
$link-active-color: false
|
||||||
$link-visited-color: $link-color
|
$link-visited-color: false
|
||||||
|
|
||||||
$blueprint-font-family: 'Century Gothic', 'Apple Gothic', 'Helvetica Neue', arial, sans-serif
|
$font-color: #2a2a2a
|
||||||
$blueprint-font-size: 13px
|
$font-family: 'Helvetica Neue', sans-serif
|
||||||
$blueprint-grid-columns: 12
|
$base-font-size: 12px
|
||||||
$blueprint-grid-width: 60px
|
$base-line-height: 18px
|
||||||
$blueprint-grid-margin: 20px
|
|
||||||
|
$total-cols: 12
|
||||||
|
$col-width: 4em
|
||||||
|
$gutter-width: 1em
|
||||||
|
$side-gutter-width: $gutter-width
|
||||||
|
|
||||||
+global-reset
|
+global-reset
|
||||||
|
|
||||||
+blueprint-typography
|
+establish-baseline
|
||||||
|
|
||||||
|
body
|
||||||
|
font-family: $font-family
|
||||||
|
color: $font-color
|
||||||
|
|
||||||
a
|
a
|
||||||
+link-colors($link-color, $link-hover-color, $link-focus-color, $link-active-color, $link-visited-color)
|
+link-colors($link-color, $link-hover-color, $link-focus-color, $link-active-color, $link-visited-color)
|
||||||
|
|
||||||
#frame
|
#main
|
||||||
padding: 50px
|
padding: 50px
|
||||||
text-align: center
|
|
||||||
+container
|
+container
|
||||||
|
+susy-grid-background
|
|
@ -1,3 +1,3 @@
|
||||||
module Middleman
|
module Middleman
|
||||||
VERSION = "2.0.0.beta1"
|
VERSION = "2.0.0.beta3"
|
||||||
end
|
end
|
||||||
|
|
|
@ -31,7 +31,8 @@ Gem::Specification.new do |s|
|
||||||
s.add_runtime_dependency("haml", ["~> 3.1.0"])
|
s.add_runtime_dependency("haml", ["~> 3.1.0"])
|
||||||
s.add_runtime_dependency("coffee-filter", ["~> 0.1.0"])
|
s.add_runtime_dependency("coffee-filter", ["~> 0.1.0"])
|
||||||
s.add_runtime_dependency("sass", ["~> 3.1.0"])
|
s.add_runtime_dependency("sass", ["~> 3.1.0"])
|
||||||
s.add_runtime_dependency("compass", ["~> 0.11.1"])
|
s.add_runtime_dependency("compass", ["0.11.2"])
|
||||||
|
s.add_runtime_dependency("compass-susy-plugin", ["~> 0.9.0"])
|
||||||
s.add_runtime_dependency("coffee-script", ["~> 2.2.0"])
|
s.add_runtime_dependency("coffee-script", ["~> 2.2.0"])
|
||||||
s.add_runtime_dependency("httparty", ["~> 0.7.0"])
|
s.add_runtime_dependency("httparty", ["~> 0.7.0"])
|
||||||
s.add_development_dependency("cucumber", ["~> 0.10.0"])
|
s.add_development_dependency("cucumber", ["~> 0.10.0"])
|
||||||
|
|
Loading…
Reference in a new issue