Skip to content

Commit ae36bc2

Browse files
committed
Add instructions for Jekyll on Windows, and update gemfile to play nicer with Windows
1 parent 3b2deff commit ae36bc2

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
source 'https://rubygems.org'
22
gem 'github-pages'
3+
4+
require 'rbconfig'
5+
gem 'wdm', '~> 0.1.0' if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Feel free to fork and make a pull request.
77

88
You can view your changes locally by installing [jekyll](https://help.github.com/articles/using-jekyll-with-pages).
99

10-
In ubuntu 14.04:
10+
Installing Jekyll in Ubuntu 14.04
11+
---
1112

1213
sudo apt-get install git ruby1.9.1 ruby1.9.1-dev nodejs
1314
sudo gem install bundle
@@ -18,6 +19,26 @@ In ubuntu 14.04:
1819
www-browser http://localhost:4000 &
1920
# work, work, work
2021

22+
Installing Jekyll in Windows
23+
---
24+
25+
- Follow the instructions in step 1 [here](http://jekyll-windows.juthilo.com/1-ruby-and-devkit/) (Installing Ruby and the Ruby DevKit).
26+
27+
Then run:
28+
29+
gem install jekyll
30+
gem install wdm
31+
gem install bundle
32+
git clone https://github.com/<user>/ev3dev.github.io
33+
cd ev3dev.github.io
34+
bundle install
35+
bundle exec jekyll serve --watch
36+
37+
Now you should be able to visit your page at: [http://localhost:4000](http://localhost:4000). It should auto-update when you change the source files, so all you have to do is refresh your browser.
38+
39+
Previewing Your Changes Online
40+
---
41+
2142
Alternately, when forking, you can create a new branch called `gh-pages`, then your
2243
changes can be viewed as `http://<user>.github.io/ev3dev.github.io`. When you do this
2344
though, GitHub will send you lots of email like this, which you should ignore.

0 commit comments

Comments
 (0)