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 | |
parent | 0230ee844be5d19f200284b3f9a70c905520c5af (diff) |
Add link-checking make targets
-rw-r--r-- | Makefile | 23 | ||||
-rw-r--r-- | README.md | 1 |
2 files changed, 20 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 @@ -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). |