Browse Source

Minimal updates for Jekyll 2.0

main
Paul O’Shannessy 11 years ago
parent
commit
619d51f015
  1. 11
      Gemfile
  2. 88
      Gemfile.lock
  3. 10
      Rakefile
  4. 5
      _config.yml
  5. 2
      css/react.scss

11
Gemfile

@ -3,19 +3,14 @@ source 'https://rubygems.org'
gem 'rake' gem 'rake'
# jekyll, which builds it all # jekyll, which builds it all
gem 'jekyll', '~>1.3.0' # 2.0 includes sass processing
gem 'jekyll', '~>2.0'
# JSON # JSON
gem 'json' gem 'json'
# SASS for CSS
gem 'sass'
# For `rake watch` # For `rake watch`
gem 'rb-fsevent' gem 'rb-fsevent'
# Redcarpet for Markdown
gem 'redcarpet'
# For markdown header cleanup # For markdown header cleanup
gem 'sanitize' gem 'sanitize', '~>2.0'

88
Gemfile.lock

@ -1,61 +1,79 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
classifier (1.3.3) blankslate (2.1.2.4)
celluloid (0.15.2)
timers (~> 1.1.0)
classifier (1.3.4)
fast-stemmer (>= 1.0.0) fast-stemmer (>= 1.0.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.7.1)
colorator (0.1) colorator (0.1)
commander (4.1.5) execjs (2.2.1)
highline (~> 1.6.11)
fast-stemmer (1.0.2) fast-stemmer (1.0.2)
ffi (1.9.3) ffi (1.9.3)
highline (1.6.20) jekyll (2.2.0)
jekyll (1.3.0)
classifier (~> 1.3) classifier (~> 1.3)
colorator (~> 0.1) colorator (~> 0.1)
commander (~> 4.1.3) jekyll-coffeescript (~> 1.0)
liquid (~> 2.5.2) jekyll-gist (~> 1.0)
listen (~> 1.3) jekyll-paginate (~> 1.0)
maruku (~> 0.6.0) jekyll-sass-converter (~> 1.0)
pygments.rb (~> 0.5.0) jekyll-watch (~> 1.0)
redcarpet (~> 2.3.0) kramdown (~> 1.3)
safe_yaml (~> 0.9.7) liquid (~> 2.6.1)
mercenary (~> 0.3.3)
pygments.rb (~> 0.6.0)
redcarpet (~> 3.1)
safe_yaml (~> 1.0)
toml (~> 0.1.0)
jekyll-coffeescript (1.0.0)
coffee-script (~> 2.2)
jekyll-gist (1.1.0)
jekyll-paginate (1.0.0)
jekyll-sass-converter (1.2.0)
sass (~> 3.2)
jekyll-watch (1.1.0)
listen (~> 2.7)
json (1.8.1) json (1.8.1)
liquid (2.5.4) kramdown (1.4.1)
listen (1.3.1) liquid (2.6.1)
listen (2.7.9)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3) rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9) rb-inotify (>= 0.9)
rb-kqueue (>= 0.2) mercenary (0.3.4)
maruku (0.6.1) mini_portile (0.6.0)
syntax (>= 1.0.0) nokogiri (1.6.3.1)
mini_portile (0.5.2) mini_portile (= 0.6.0)
nokogiri (1.6.0) parslet (1.5.0)
mini_portile (~> 0.5.0) blankslate (~> 2.0)
posix-spawn (0.3.6) posix-spawn (0.3.9)
pygments.rb (0.5.4) pygments.rb (0.6.0)
posix-spawn (~> 0.3.6) posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.1.0) yajl-ruby (~> 1.1.0)
rake (10.1.0) rake (10.3.2)
rb-fsevent (0.9.3) rb-fsevent (0.9.4)
rb-inotify (0.9.2) rb-inotify (0.9.5)
ffi (>= 0.5.0) ffi (>= 0.5.0)
rb-kqueue (0.2.0) redcarpet (3.1.2)
ffi (>= 0.5.0) safe_yaml (1.0.3)
redcarpet (2.3.0)
safe_yaml (0.9.7)
sanitize (2.0.6) sanitize (2.0.6)
nokogiri (>= 1.4.4) nokogiri (>= 1.4.4)
sass (3.2.12) sass (3.3.14)
syntax (1.0.0) timers (1.1.0)
toml (0.1.1)
parslet (~> 1.5.0)
yajl-ruby (1.1.0) yajl-ruby (1.1.0)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
jekyll (~> 1.3.0) jekyll (~> 2.0)
json json
rake rake
rb-fsevent rb-fsevent
redcarpet sanitize (~> 2.0)
sanitize
sass

10
Rakefile

@ -2,19 +2,13 @@ require('rubygems')
require('json') require('json')
require('yaml') require('yaml')
desc "generate css from sass"
task :css do
system "sass --style=compressed _css/react.scss css/react.css"
end
desc "generate js from jsx" desc "generate js from jsx"
task :js do task :js do
system "../bin/jsx _js js" system "../bin/jsx _js js"
end end
desc "watch css & js" desc "watch js"
task :watch do task :watch do
Process.spawn "sass --style=compressed --watch _css/react.scss:css/react.css"
Process.spawn "../bin/jsx --watch _js js" Process.spawn "../bin/jsx --watch _js js"
Process.waitall Process.waitall
end end
@ -34,4 +28,4 @@ task :release => [:update_version, :default] do
system "jekyll build -d ../../react-gh-pages" system "jekyll build -d ../../react-gh-pages"
end end
task :default => [:css, :js] task :default => [:js]

5
_config.yml

@ -10,7 +10,7 @@ exclude:
redcarpet: redcarpet:
extensions: extensions:
- fenced_code_blocks - fenced_code_blocks
pygments: true highlighter: pygments
name: React name: React
markdown: redcarpet markdown: redcarpet
react_version: 0.11.1 react_version: 0.11.1
@ -19,3 +19,6 @@ relative_permalinks: true
paginate: 5 paginate: 5
paginate_path: "/blog/page:num/" paginate_path: "/blog/page:num/"
timezone: America/Los_Angeles timezone: America/Los_Angeles
sass:
style: :compressed
sass_dir: _css

2
_css/react.scss → css/react.scss

@ -1,3 +1,5 @@
---
---
@import 'bourbon/bourbon'; @import 'bourbon/bourbon';
@import '_variables'; @import '_variables';
@import '_typography'; @import '_typography';
Loading…
Cancel
Save