Source for www.constructive.dev. Jekyll,
built on the Type-on-Strap remote
theme, deployed to GitHub Pages from the gh-pages branch.
-
Build & deploy (
.github/workflows/build.yml): on push tomaster, builds withJEKYLL_ENV=productionand force-pushes_site/togh-pages. -
PR previews (
.github/workflows/preview.yml): each PR gets a preview athttps://www.constructive.dev/pr-preview/pr-<N>/via rossjrw/pr-preview-action. -
Lint (
.github/workflows/lint.yml): runsscripts/lint.sh— which is exactlybundle exec overcommit --run— on every PR and push tomaster. The same overcommit configuration runs locally on commit; install once, then it just happens:bundle install bundle exec overcommit --installRules: Markdown (
mdl, style in.mdlrc+mdl_style.rb), spelling (spellr, wordlist in.spellr_wordlists/), hygiene checks (trailing whitespace, final newline, YAML/JSON syntax, merge markers, case conflicts, executable/shebang consistency) and a 72-char pane-width cap on the refactoring sample sources. Run everything at any time withscripts/lint.sh.
bundle install
bundle exec jekyll serve