Skip to content

Commit e09a1e7

Browse files
committed
Merge pull request #7 from WasabiFan/windows-compat
Add instructions for Jekyll on Windows
2 parents 3b2deff + 051ff98 commit e09a1e7

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

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: 21 additions & 2 deletions
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,7 +19,25 @@ In ubuntu 14.04:
1819
www-browser http://localhost:4000 &
1920
# work, work, work
2021

21-
Alternately, when forking, you can create a new branch called `gh-pages`, then your
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 bundle
30+
git clone https://github.com/<user>/ev3dev.github.io
31+
cd ev3dev.github.io
32+
bundle install
33+
bundle exec jekyll serve --watch
34+
35+
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.
36+
37+
Previewing Your Changes Online
38+
---
39+
40+
When forking, you can create a new branch called `gh-pages`, then your
2241
changes can be viewed as `http://<user>.github.io/ev3dev.github.io`. When you do this
2342
though, GitHub will send you lots of email like this, which you should ignore.
2443

0 commit comments

Comments
 (0)