diff options
author | Evan Read <eread@gitlab.com> | 2022-05-12 02:17:09 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-05-12 02:17:09 +0300 |
commit | a28de13a7c1cb8116ef663ca92abe072525b865c (patch) | |
tree | 41a4426b162f66d80da7fa06c299efb65dfc91d6 /Makefile | |
parent | 0230ee844be5d19f200284b3f9a70c905520c5af (diff) |
Add link-checking make targets
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -2,11 +2,14 @@ up: setup view -view: - @bundle exec nanoc compile && bundle exec nanoc view +compile: setup + @bundle exec nanoc compile -live: - @bundle exec nanoc compile && bundle exec nanoc live +view: compile + @bundle exec nanoc view + +live: compile + bundle exec nanoc live setup: @asdf install && bundle install && yarn install --frozen-lockfile @@ -14,5 +17,17 @@ setup: clean: @rm -rf tmp public +internal-links-check: compile + @bundle exec nanoc check internal_links + +internal-anchors-check: compile + @bundle exec nanoc check internal_anchors + +internal-links-and-anchors-check: compile + @parallel time bundle exec nanoc check ::: internal_links internal_anchors + +external-links-check: compile + @bundle exec nanoc check external_links + test: setup @bundle exec rspec && yarn test && yarn eslint && yarn prettier && hadolint latest.Dockerfile .gitpod.Dockerfile **/*.Dockerfile |