Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-05-12 02:17:09 +0300
committerEvan Read <eread@gitlab.com>2022-05-12 02:17:09 +0300
commita28de13a7c1cb8116ef663ca92abe072525b865c (patch)
tree41a4426b162f66d80da7fa06c299efb65dfc91d6 /Makefile
parent0230ee844be5d19f200284b3f9a70c905520c5af (diff)
Add link-checking make targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3992dc01..b3c74116 100644
--- a/Makefile
+++ b/Makefile
@@ -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