From: François Michonneau Date: Thu, 12 Sep 2019 14:41:02 +0000 (+0200) Subject: use bundler to render lessons X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/commitdiff_plain/a56f2a08ca56307aaf0f2ab1ed45412dacd7ea1c use bundler to render lessons --- diff --git a/.gitignore b/.gitignore index 27af20d..2776745 100644 --- a/.gitignore +++ b/.gitignore @@ -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 index 0000000..37f5eaa --- /dev/null +++ b/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'github-pages', group: :jekyll_plugins diff --git a/Makefile b/Makefile index 5ae969f..5c9eba0 100644 --- 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