From da45b269b4207fa09fe2dcd30c10299b0b282bed Mon Sep 17 00:00:00 2001 From: ryannathans <1307375+ryannathans@users.noreply.github.com> Date: Fri, 24 Dec 2021 21:43:05 +1100 Subject: [PATCH] fix serve instructions, add serve scripts, exclude dev files from web host --- README.md | 11 +++++------ _config.yml | 3 ++- serve.bat | 1 + serve.sh | 2 ++ 4 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 serve.bat create mode 100755 serve.sh diff --git a/README.md b/README.md index 46b08bd55..4e8f3908a 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,11 @@ View the website live here: https://2009scape.github.io/ This website utilizes Jekyll to generate static pages. 1. Install Jekyll - - https://jekyllrb.com/docs/installation/ -2. Build the site (Inside project root) - - Windows: jekyll serve - - Unix: bundle exec jekyll serve -3. Run a temporary web server in `_site/` - - `python -m http.server` + * https://jekyllrb.com/docs/installation/ +2. Build and serve the site + * Inside project root run `jekyll serve` or alternatively: + - Windows: `serve.bat` + - Unix: `./serve.sh` For faster builds locally (from about 80 seconds to about 6 seconds) add:
diff --git a/_config.yml b/_config.yml index ba1e3c278..88bdad888 100644 --- a/_config.yml +++ b/_config.yml @@ -1 +1,2 @@ -encoding: UTF-8 \ No newline at end of file +encoding: UTF-8 +exclude: [serve.bat, serve.sh, parse.py, README.md] diff --git a/serve.bat b/serve.bat new file mode 100644 index 000000000..8bfad892e --- /dev/null +++ b/serve.bat @@ -0,0 +1 @@ +jekyll serve diff --git a/serve.sh b/serve.sh new file mode 100755 index 000000000..fcd62f56c --- /dev/null +++ b/serve.sh @@ -0,0 +1,2 @@ +#!/bin/sh +jekyll serve