fix serve instructions, add serve scripts, exclude dev files from web host

This commit is contained in:
ryannathans 2021-12-24 21:43:05 +11:00
parent e913e849cf
commit da45b269b4
4 changed files with 10 additions and 7 deletions

View File

@ -14,12 +14,11 @@ View the website live here: https://2009scape.github.io/
This website utilizes Jekyll to generate static pages. This website utilizes Jekyll to generate static pages.
1. Install Jekyll 1. Install Jekyll
- https://jekyllrb.com/docs/installation/ * https://jekyllrb.com/docs/installation/
2. Build the site (Inside project root) 2. Build and serve the site
- Windows: jekyll serve * Inside project root run `jekyll serve` or alternatively:
- Unix: bundle exec jekyll serve - Windows: `serve.bat`
3. Run a temporary web server in `_site/` - Unix: `./serve.sh`
- `python -m http.server`
For faster builds locally (from about 80 seconds to about 6 seconds) add: For faster builds locally (from about 80 seconds to about 6 seconds) add:
<pre> <pre>

View File

@ -1 +1,2 @@
encoding: UTF-8 encoding: UTF-8
exclude: [serve.bat, serve.sh, parse.py, README.md]

1
serve.bat Normal file
View File

@ -0,0 +1 @@
jekyll serve

2
serve.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
jekyll serve