moiseevigor / moiseevigor.github.io

Tech Blog
http://moiseevigor.github.io/
MIT License
2 stars 1 forks source link

Tech Blog

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.