From 70a2357283a93fe24379ea724a2368b89e19d91e Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Mon, 22 Jan 2018 16:32:56 -0800 Subject: [PATCH 1/3] Add jekyll-livereload support To enable livereload, add --livereload --reload_port 35729 to jekyll serve command. Pages will now auto-reload when changes are made during development. --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 3ddd449..a421420 100644 --- a/Gemfile +++ b/Gemfile @@ -18,6 +18,7 @@ gem "github-pages", group: :jekyll_plugins # If you have any plugins, put them here! group :jekyll_plugins do gem "jekyll-feed", "~> 0.6" + gem "jekyll-livereload" end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem -- 2.43.4 From 30a954ff4dc18eb1cd620ce0867d6f8566e24dd4 Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Mon, 22 Jan 2018 16:34:17 -0800 Subject: [PATCH 2/3] Add docker-compose file Just to make it easier to do development without installing all the jekyll stuff yourself. All you need is docker+docker-compose and run 'docker-compose up' in the root of the project. --- docker-compose.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..84d3fcc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ + +jekyll: + image: jekyll/jekyll + command: jekyll serve --livereload --reload_port 35729 + ports: + - 4000:4000 + - 35729:35729 + volumes: + - .:/srv/jekyll -- 2.43.4 From 1874ba923449f6df3c7ba1c86ffec11529587892 Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Mon, 22 Jan 2018 16:44:22 -0800 Subject: [PATCH 3/3] Update readme with docker-compose info --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 39fec65..1285927 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,20 @@ # Jekyll site for ulovliglogning.dk -## Install +## To work on the code, either -### Install Jekyll and Bundler gems through RubyGems +### Use docker +You need docker-compose. Simply run +`docker-compose up` to launch the site in a docker container with livereload support. + +### Or install Jekyll locally + +#### Install Jekyll and Bundler gems through RubyGems `gem install jekyll bundler` -### Install dependencies +#### Install dependencies `bundle install` -### Build the site local +#### Build the site local `bundle exec jekyll serve` You can now see the site at [localhost:4000](http://localhost:4000) -- 2.43.4