Skip to content

Commit 6362596

Browse files
committed
Merge pull request coffeescript-cookbook#87 from peterhellberg/local-dev
Local development update
2 parents 16016c9 + 7ebd027 commit 6362596

File tree

7 files changed

+99
-71
lines changed

7 files changed

+99
-71
lines changed

.ruby-gemset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coffeescript-cookbook

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.9.3

Gemfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
source 'http://rubygems.org'
1+
source 'https://rubygems.org'
22

33
group :development do
4-
gem "RedCloth", "~> 4.2"
5-
gem "foreman", "~> 0.13"
6-
gem "serve", "~> 1.0"
7-
gem "jekyll", "~> 0.10"
8-
gem "thin", "~> 1.2"
4+
gem "github-pages"
5+
gem "tzinfo-data"
6+
7+
gem "foreman", "~> 0.63"
8+
gem "serve", "~> 1.5"
99
end

Gemfile.lock

Lines changed: 64 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,77 @@
11
GEM
2-
remote: http://rubygems.org/
2+
remote: https://rubygems.org/
33
specs:
44
RedCloth (4.2.9)
5-
activesupport (3.0.7)
5+
activesupport (3.2.14)
6+
i18n (~> 0.6, >= 0.6.4)
7+
multi_json (~> 1.0)
68
classifier (1.3.3)
79
fast-stemmer (>= 1.0.0)
8-
daemons (1.1.3)
9-
directory_watcher (1.4.0)
10-
eventmachine (0.12.10)
11-
fast-stemmer (1.0.0)
12-
foreman (0.13.0)
13-
term-ansicolor (~> 1.0.5)
10+
colorator (0.1)
11+
commander (4.1.5)
12+
highline (~> 1.6.11)
13+
directory_watcher (1.4.1)
14+
dotenv (0.8.0)
15+
fast-stemmer (1.0.2)
16+
foreman (0.63.0)
17+
dotenv (>= 0.7)
1418
thor (>= 0.13.6)
15-
i18n (0.4.2)
16-
jekyll (0.10.0)
17-
classifier (>= 1.3.1)
18-
directory_watcher (>= 1.1.1)
19-
liquid (>= 1.9.0)
20-
maruku (>= 0.5.9)
21-
liquid (2.2.2)
22-
maruku (0.6.0)
19+
github-pages (1)
20+
RedCloth (= 4.2.9)
21+
jekyll (= 1.1.2)
22+
kramdown (= 1.0.2)
23+
liquid (= 2.5.1)
24+
maruku (= 0.6.1)
25+
rdiscount (= 1.6.8)
26+
redcarpet (= 2.2.2)
27+
highline (1.6.19)
28+
i18n (0.6.5)
29+
jekyll (1.1.2)
30+
classifier (~> 1.3)
31+
colorator (~> 0.1)
32+
commander (~> 4.1.3)
33+
directory_watcher (~> 1.4.1)
34+
kramdown (~> 1.0.2)
35+
liquid (~> 2.5.1)
36+
maruku (~> 0.5)
37+
pygments.rb (~> 0.5.0)
38+
redcarpet (~> 2.2.2)
39+
safe_yaml (~> 0.7.0)
40+
kramdown (1.0.2)
41+
liquid (2.5.1)
42+
maruku (0.6.1)
2343
syntax (>= 1.0.0)
24-
rack (1.2.2)
25-
serve (1.0.0)
26-
activesupport (~> 3.0.1)
27-
i18n (~> 0.4.1)
28-
rack (~> 1.2.1)
29-
tzinfo (~> 0.3.23)
44+
multi_json (1.7.9)
45+
posix-spawn (0.3.6)
46+
pygments.rb (0.5.2)
47+
posix-spawn (~> 0.3.6)
48+
yajl-ruby (~> 1.1.0)
49+
rack (1.5.2)
50+
rack-test (0.6.2)
51+
rack (>= 1.0)
52+
rdiscount (1.6.8)
53+
redcarpet (2.2.2)
54+
safe_yaml (0.7.1)
55+
serve (1.5.2)
56+
activesupport (~> 3.2.12)
57+
i18n
58+
rack (~> 1.5.2)
59+
rack-test (~> 0.6.2)
60+
tilt (~> 1.3.3)
61+
tzinfo
3062
syntax (1.0.0)
31-
term-ansicolor (1.0.5)
32-
thin (1.2.11)
33-
daemons (>= 1.0.9)
34-
eventmachine (>= 0.12.6)
35-
rack (>= 1.0.0)
36-
thor (0.14.6)
37-
tzinfo (0.3.27)
63+
thor (0.18.1)
64+
tilt (1.3.7)
65+
tzinfo (1.0.1)
66+
tzinfo-data (1.2013.4)
67+
tzinfo (>= 1.0.0)
68+
yajl-ruby (1.1.0)
3869

3970
PLATFORMS
4071
ruby
4172

4273
DEPENDENCIES
43-
RedCloth (~> 4.2)
44-
foreman (~> 0.13)
45-
jekyll (~> 0.10)
46-
serve (~> 1.0)
47-
thin (~> 1.2)
74+
foreman (~> 0.63)
75+
github-pages
76+
serve (~> 1.5)
77+
tzinfo-data

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
jekyll: bundle exec jekyll --auto
1+
jekyll: bundle exec jekyll build --watch
22
serve: bundle exec serve 4000 development _site

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
safe: true
12
pygments: true
23
lsi: false
4+
markdown: redcarpet
35
exclude:
46
- README.md
57
- CNAME

developers-guide.md

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ _Please help out by updating this page_
99

1010
### Operating System
1111

12-
It works on Mac OSX. Probably works without any changes or issues on linux. A masochist could probably get it working on Windows.
12+
It works on Mac OSX. Probably works without any changes or issues on Linux.
13+
A masochist could probably get it working on Windows.
1314

1415
## Installation
1516

@@ -19,54 +20,47 @@ It works on Mac OSX. Probably works without any changes or issues on linux. A ma
1920
git clone git://github.com/coffeescript-cookbook/coffeescript-cookbook.github.com.git
2021
{% endhighlight %}
2122

22-
### Create a Ruby Gemset
23+
### Ruby environment
2324

24-
Optional, but highly recommended.
25+
You probably want to have [RVM](http://rvm.io/) installed.
2526

26-
{% highlight bash %}
27-
$ rvm gemset create jekyll
28-
$ echo 'rvm gemset use jekyll' >> .rvmrc
29-
{% endhighlight %}
30-
31-
### Install Required Gems
27+
The project includes a `.ruby-version` file locked to
28+
*1.9.3* since that is what Github Pages are currently using.
3229

33-
{% highlight bash %}
34-
gem install jekyll # needed for testing building the site
35-
gem install RedCloth # needed for .md rendering
36-
gem install serve # needed for resolving .html files w/o extension
37-
gem install thin # optional; more efficient webserver than Webrick but not strictly necessary
38-
{% endhighlight %}
30+
There is also a `.ruby-gemset` that is set to *coffeescript-cookbook*
3931

40-
### Install pygments
32+
### Required dependencies
4133

42-
You'll need python installed for this. Macs and most linuces come with it preinstalled.
34+
We are using [Bundler](http://bundler.io/) to install the required Ruby dependencies.
4335

4436
{% highlight bash %}
45-
easy_install pygments # for syntax highlighting
37+
bundle install
4638
{% endhighlight %}
4739

48-
## Building and Viewing the Website
49-
50-
### Run jekyll
40+
#### Install pygments
5141

52-
Open a terminal window, cd into the project folder and run jekyll from the project root.
42+
You'll need python installed for this.
43+
Macs and most Linuces come with it preinstalled.
5344

5445
{% highlight bash %}
55-
jekyll --auto
46+
easy_install pygments # for syntax highlighting
5647
{% endhighlight %}
5748

58-
Leave this window running while you work. Any time you change a file, jekyll will rerender it into the `_site` folder.
59-
60-
### Run serve
49+
## Building and Viewing the Website
6150

62-
Open another terminal window, cd into the project folder, then cd into the `_site` subfolder, and run
51+
Open a terminal window, cd into the project folder and run `foreman start` from the project root.
6352

6453
{% highlight bash %}
65-
serve
54+
foreman start
6655
{% endhighlight %}
6756

68-
This will start a webserver in the `_site` folder. Open a browser and visit `http://localhost:4000/` and you should see the site.
57+
Leave this window running while you work.
58+
Any time you change a file, jekyll will rerender it into the `_site` folder.
59+
60+
Open a browser and visit <http://localhost:4000/> and you should see the site.
6961

7062
## Minutiae and Other Trivialities
7163

72-
jekyll can take a second or two to catch up when you save a file. If you edit a file and don't see the changes in your browser, give it a second or two and try again. You may also see Maruku warnings, but as long as it prints `Successfully generated site` you should be alright.
64+
Jekyll can take a second or two to catch up when you save a file.
65+
If you edit a file and don't see the changes in your browser, give it a second or two and try again.
66+
As long as it prints `Successfully generated site` you should be alright.

0 commit comments

Comments
 (0)