File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ source "https://rubygems.org"
2+ ruby '2.1.1' unless ENV [ 'DEV' ]
3+
4+ gem 'rake' , '~> 10.0'
5+ gem 'jekyll' , '>= 1.0.2'
6+ gem 'kramdown'
7+
8+ gem 'rack-jekyll'
9+ gem 'rack-rewrite'
10+ gem 'rack-protection'
Original file line number Diff line number Diff line change 1+ GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ blankslate (2.1.2.4 )
5+ classifier (1.3.4 )
6+ fast-stemmer (>= 1.0.0 )
7+ colorator (0.1 )
8+ commander (4.1.6 )
9+ highline (~> 1.6.11 )
10+ fast-stemmer (1.0.2 )
11+ ffi (1.9.3 )
12+ highline (1.6.21 )
13+ jekyll (1.5.0 )
14+ classifier (~> 1.3 )
15+ colorator (~> 0.1 )
16+ commander (~> 4.1.3 )
17+ liquid (~> 2.5.5 )
18+ listen (~> 1.3 )
19+ maruku (= 0.7.0 )
20+ pygments.rb (~> 0.5.0 )
21+ redcarpet (~> 2.3.0 )
22+ safe_yaml (~> 1.0 )
23+ toml (~> 0.1.0 )
24+ kramdown (1.3.3 )
25+ liquid (2.5.5 )
26+ listen (1.3.1 )
27+ rb-fsevent (>= 0.9.3 )
28+ rb-inotify (>= 0.9 )
29+ rb-kqueue (>= 0.2 )
30+ maruku (0.7.0 )
31+ parslet (1.5.0 )
32+ blankslate (~> 2.0 )
33+ posix-spawn (0.3.8 )
34+ pygments.rb (0.5.4 )
35+ posix-spawn (~> 0.3.6 )
36+ yajl-ruby (~> 1.1.0 )
37+ rack (1.5.2 )
38+ rack-jekyll (0.4.1 )
39+ jekyll (>= 0.12.0 , < 2.0 )
40+ rack (~> 1.5.0 )
41+ rack-protection (1.5.2 )
42+ rack
43+ rack-rewrite (1.5.0 )
44+ rake (10.2.1 )
45+ rb-fsevent (0.9.4 )
46+ rb-inotify (0.9.3 )
47+ ffi (>= 0.5.0 )
48+ rb-kqueue (0.2.2 )
49+ ffi (>= 0.5.0 )
50+ redcarpet (2.3.0 )
51+ safe_yaml (1.0.1 )
52+ toml (0.1.1 )
53+ parslet (~> 1.5.0 )
54+ yajl-ruby (1.1.0 )
55+
56+ PLATFORMS
57+ ruby
58+
59+ DEPENDENCIES
60+ jekyll (>= 1.0.2 )
61+ kramdown
62+ rack-jekyll
63+ rack-protection
64+ rack-rewrite
65+ rake (~> 10.0 )
Original file line number Diff line number Diff line change 1+ # encoding: utf-8
2+
3+ require 'rubygems'
4+
5+ begin
6+ require 'bundler/setup'
7+ rescue LoadError => e
8+ warn e . message
9+ warn "Run `gem install bundler` to install Bundler"
10+ exit -1
11+ end
12+
13+ HOST = 'www.ruby-lang.org'
14+ LANGUAGES = %w[ bg de en es fr id it ja ko pl pt ru tr vi zh_cn zh_tw ]
15+
16+ task :default => [ :generate ]
17+
18+ desc "Generates the Jekyll site"
19+ task :generate do
20+ require 'jekyll'
21+ # workaround for LANG=C environment
22+ module Jekyll ::Convertible
23+ Encoding . default_external = Encoding ::UTF_8
24+ end
25+
26+ options = Jekyll . configuration ( { 'auto' => false , 'server' => false } )
27+ puts "Building site: #{ options [ 'source' ] } -> #{ options [ 'destination' ] } "
28+ $stdout. flush
29+ Jekyll ::Site . new ( options ) . process
30+ end
31+
32+ desc "Generates the Jekyll site and starts local server"
33+ task :preview do
34+ sh 'jekyll serve --watch'
35+ end
You can’t perform that action at this time.
0 commit comments