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
parent0230ee844be5d19f200284b3f9a70c905520c5af (diff)
Add link-checking make targets
-rw-r--r--Makefile23
-rw-r--r--README.md1
2 files changed, 20 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
diff --git a/README.md b/README.md
index 248e4975..2112b7d5 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@ you must contribute the documentation changes in the projects for those products
- [Omnibus GitLab](https://gitlab.com/gitlab-org/omnibus-gitlab)
- [GitLab Runner](https://gitlab.com/gitlab-org/gitlab-runner)
- [GitLab Chart](https://gitlab.com/gitlab-org/charts/gitlab)
+- [GitLab Operator](https://gitlab.com/gitlab-org/cloud-native/gitlab-operator)
If you want to preview your documentation changes and see how they would appear on
<http://docs.gitlab.com>, there are a few ways to [preview GitLab documentation changes](doc/index.md#development-when-contributing-to-git-lab-documentation).