Skip to content

ruzickap/ruzickap.github.io

Repository files navigation

ruzickap.github.io

GitHub Actions status - Lint Code Base Build and Deploy

Overview

My personal site and blog...

ruzickap.github.io

Theme Source

Chirpy:

Building / Testing Locally

On Ubuntu / Intel-based Mac:

bundle install
bundle exec jekyll s

Using Docker:

docker run --rm -it --volume="${PWD}:/srv/jekyll" -e JEKYLL_UID="${UID}" -e JEKYLL_GID="${GID}" jekyll/jekyll -- bash -c 'chown -R jekyll /usr/gem/ && jekyll build --destination "public"'
docker run --rm -it --volume="${PWD}:/srv/jekyll" -e JEKYLL_UID="${UID}" -e JEKYLL_GID="${GID}" --publish 4000:4000 jekyll/jekyll -- bash -c 'chown -R jekyll /usr/gem/ && jekyll serve'

Megalinter:

mega-linter-runner --remove-container --container-name="mega-linter" --debug --env VALIDATE_ALL_CODEBASE=true

Notes

  • Use ```bash to run commands during the post_tests "create" execution:

    ```bash
    ### <some create commands...>
    ```
  • Use ```shell not to run commands during the post_tests execution (they will be only displayed on the web pages):

    ```shell
    ### some commands...
    ```
  • Use ```sh to run commands during the post_tests "destroy" execution:

    ```sh
    ### <some clean-up/destroy commands...>
    ```