use bundler to render lessons
authorFrançois Michonneau <francois.michonneau@gmail.com>
Thu, 12 Sep 2019 14:41:02 +0000 (16:41 +0200)
committerFrançois Michonneau <francois.michonneau@gmail.com>
Fri, 13 Dec 2019 17:21:57 +0000 (12:21 -0500)
.gitignore
Gemfile [new file with mode: 0644]
Makefile

index 27af20da8e4bc5e7ab6e8439a365fd8e25f0bf0c..27767458d0bd2cf31d45927283474523dd522935 100644 (file)
@@ -9,4 +9,4 @@ _site
 .Rproj.user
 .Rhistory
 .RData
-
+Gemfile.lock
\ No newline at end of file
diff --git a/Gemfile b/Gemfile
new file mode 100644 (file)
index 0000000..37f5eaa
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,2 @@
+source 'https://rubygems.org'
+gem 'github-pages', group: :jekyll_plugins
index 5ae969f6ddb2ae93bc9415aceebbd94cb065fbd3..5c9eba08ee49bcaec7b91c172f733136f973dad1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,9 @@
 
 # Settings
 MAKEFILES=Makefile $(wildcard *.mk)
-JEKYLL=jekyll
 JEKYLL_VERSION=3.8.5
+JEKYLL=bundle update && bundle exec jekyll
+JEKYLL_DOCKER=${JEKYLL} serve --host 0.0.0.0
 PARSER=bin/markdown_ast.rb
 DST=_site
 
@@ -43,7 +44,7 @@ commands :
 
 ## docker-serve     : use docker to build the site
 docker-serve :
-       docker run --rm -it -v ${PWD}:/srv/jekyll -p 127.0.0.1:4000:4000 jekyll/jekyll:${JEKYLL_VERSION} make serve
+       docker run --rm -it -v ${PWD}:/srv/jekyll -p 4000:4000 jekyll/jekyll:${JEKYLL_VERSION} ${JEKYLL_DOCKER}
 
 ## serve            : run a local server.
 serve : lesson-md