Skip to content

Commit a56f2a0

Browse files
committed
use bundler to render lessons
1 parent 8803fe5 commit a56f2a0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ _site
99
.Rproj.user
1010
.Rhistory
1111
.RData
12-
12+
Gemfile.lock

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages', group: :jekyll_plugins

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
# Settings
55
MAKEFILES=Makefile $(wildcard *.mk)
6-
JEKYLL=jekyll
76
JEKYLL_VERSION=3.8.5
7+
JEKYLL=bundle update && bundle exec jekyll
8+
JEKYLL_DOCKER=${JEKYLL} serve --host 0.0.0.0
89
PARSER=bin/markdown_ast.rb
910
DST=_site
1011

@@ -43,7 +44,7 @@ commands :
4344

4445
## docker-serve : use docker to build the site
4546
docker-serve :
46-
docker run --rm -it -v ${PWD}:/srv/jekyll -p 127.0.0.1:4000:4000 jekyll/jekyll:${JEKYLL_VERSION} make serve
47+
docker run --rm -it -v ${PWD}:/srv/jekyll -p 4000:4000 jekyll/jekyll:${JEKYLL_VERSION} ${JEKYLL_DOCKER}
4748

4849
## serve : run a local server.
4950
serve : lesson-md

0 commit comments

Comments
 (0)