Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 992 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 992 Bytes

CircleCI

Run Blog

Building image

docker build -t blog .

Serve blog from root dir

docker run --rm --volume="$PWD:/srv/jekyll" -p 4000:4000 -it blog jekyll serve --incremental

Open browser at https://localhost:4000/

Run Blog with _drafts

Adding --drafts it will serve *.markdown files from _drafts folder.

docker run --rm --volume="$PWD:/srv/jekyll" -p 4000:4000 -it blog jekyll serve --drafts --incremental

Testing

docker run --rm --volume="$PWD:/srv/jekyll" -it blog \
    bundle exec htmlproofer ./_site \
        --only-4xx \
        --ignore_urls "/example.com/,/ws-na.amazon-adsystem.com/,/molpharm.aspetjournals.org/" \
        --ignore-status-codes "403"

License

Open sourced under the MIT license.