Skip to content

Commit

Permalink
Minimal updates for Jekyll 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zpao committed Aug 13, 2014
1 parent ed27c89 commit 77fa3f3
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 53 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ build/
docs/code
docs/_site
docs/.sass-cache
docs/css/react.css
docs/js/*
docs/downloads
examples/shared/*.js
Expand Down
11 changes: 3 additions & 8 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@ source 'https://rubygems.org'
gem 'rake'

# jekyll, which builds it all
gem 'jekyll', '~>1.3.0'
# 2.0 includes sass processing
gem 'jekyll', '~>2.0'

# JSON
gem 'json'

# SASS for CSS
gem 'sass'

# For `rake watch`
gem 'rb-fsevent'

# Redcarpet for Markdown
gem 'redcarpet'

# For markdown header cleanup
gem 'sanitize'
gem 'sanitize', '~>2.0'
88 changes: 53 additions & 35 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,61 +1,79 @@
GEM
remote: https://rubygems.org/
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)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.7.1)
colorator (0.1)
commander (4.1.5)
highline (~> 1.6.11)
execjs (2.2.1)
fast-stemmer (1.0.2)
ffi (1.9.3)
highline (1.6.20)
jekyll (1.3.0)
jekyll (2.2.0)
classifier (~> 1.3)
colorator (~> 0.1)
commander (~> 4.1.3)
liquid (~> 2.5.2)
listen (~> 1.3)
maruku (~> 0.6.0)
pygments.rb (~> 0.5.0)
redcarpet (~> 2.3.0)
safe_yaml (~> 0.9.7)
jekyll-coffeescript (~> 1.0)
jekyll-gist (~> 1.0)
jekyll-paginate (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.0)
kramdown (~> 1.3)
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)
liquid (2.5.4)
listen (1.3.1)
kramdown (1.4.1)
liquid (2.6.1)
listen (2.7.9)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
maruku (0.6.1)
syntax (>= 1.0.0)
mini_portile (0.5.2)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
posix-spawn (0.3.6)
pygments.rb (0.5.4)
mercenary (0.3.4)
mini_portile (0.6.0)
nokogiri (1.6.3.1)
mini_portile (= 0.6.0)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.9)
pygments.rb (0.6.0)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.1.0)
rake (10.1.0)
rb-fsevent (0.9.3)
rb-inotify (0.9.2)
rake (10.3.2)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
rb-kqueue (0.2.0)
ffi (>= 0.5.0)
redcarpet (2.3.0)
safe_yaml (0.9.7)
redcarpet (3.1.2)
safe_yaml (1.0.3)
sanitize (2.0.6)
nokogiri (>= 1.4.4)
sass (3.2.12)
syntax (1.0.0)
sass (3.3.14)
timers (1.1.0)
toml (0.1.1)
parslet (~> 1.5.0)
yajl-ruby (1.1.0)

PLATFORMS
ruby

DEPENDENCIES
jekyll (~> 1.3.0)
jekyll (~> 2.0)
json
rake
rb-fsevent
redcarpet
sanitize
sass
sanitize (~> 2.0)
10 changes: 2 additions & 8 deletions docs/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ require('rubygems')
require('json')
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"
task :js do
system "../bin/jsx _js js"
end

desc "watch css & js"
desc "watch js"
task :watch do
Process.spawn "sass --style=compressed --watch _css/react.scss:css/react.css"
Process.spawn "../bin/jsx --watch _js js"
Process.waitall
end
Expand All @@ -34,4 +28,4 @@ task :release => [:update_version, :default] do
system "jekyll build -d ../../react-gh-pages"
end

task :default => [:css, :js]
task :default => [:js]
5 changes: 4 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exclude:
redcarpet:
extensions:
- fenced_code_blocks
pygments: true
highlighter: pygments
name: React
markdown: redcarpet
react_version: 0.11.1
Expand All @@ -19,3 +19,6 @@ relative_permalinks: true
paginate: 5
paginate_path: "/blog/page:num/"
timezone: America/Los_Angeles
sass:
style: :compressed
sass_dir: _css
2 changes: 2 additions & 0 deletions docs/_css/react.scss → docs/css/react.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
---
@import 'bourbon/bourbon';
@import '_variables';
@import '_typography';
Expand Down

0 comments on commit 77fa3f3

Please sign in to comment.