From 8a2dcc946b5b0ab88e52221b6f9f2ce67376e0b1 Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Thu, 17 Oct 2019 11:23:56 +0200 Subject: [PATCH] Improve docs for local dev --- docs/_config_local.yml | 7 +++++++ docs/_includes/footer.html | 2 +- docs/_includes/header.html | 2 +- docs/docker-compose.yml | 6 ++++-- 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 docs/_config_local.yml diff --git a/docs/_config_local.yml b/docs/_config_local.yml new file mode 100644 index 0000000..3602cad --- /dev/null +++ b/docs/_config_local.yml @@ -0,0 +1,7 @@ +# Github Metadata plugin +repository: box/spout +plugins: + - "jekyll-github-metadata" + +github: + url: http://localhost:8080 diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html index b296089..a4c79dd 100755 --- a/docs/_includes/footer.html +++ b/docs/_includes/footer.html @@ -11,7 +11,7 @@ diff --git a/docs/_includes/header.html b/docs/_includes/header.html index 7b945f2..e0ba3eb 100755 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -16,7 +16,7 @@ Documentation Guides FAQ - + {% include icon-github.svg %} GitHub diff --git a/docs/docker-compose.yml b/docs/docker-compose.yml index 2cb0093..b7b9a63 100644 --- a/docs/docker-compose.yml +++ b/docs/docker-compose.yml @@ -1,7 +1,9 @@ version: "3" services: site: - command: jekyll serve + command: bash -c " + gem install 'jekyll-github-metadata' + && jekyll serve --config _config.yml,_config_local.yml" image: jekyll/jekyll:latest volumes: - $PWD:/srv/jekyll @@ -10,4 +12,4 @@ services: - 4000:4000 - 35729:35729 - 3000:3000 - - 8080:4000 \ No newline at end of file + - 8080:4000