Commit 2e58867e authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'eread/add-vale-linting-to-docs-pipeline' into 'master'

Add Vale linting to docs pipeline

See merge request gitlab-org/gitlab!25865
parents 80686649 152631ba
...@@ -44,13 +44,15 @@ docs lint: ...@@ -44,13 +44,15 @@ docs lint:
- .default-tags - .default-tags
- .default-retry - .default-retry
- .docs:rules:docs-lint - .docs:rules:docs-lint
image: "registry.gitlab.com/gitlab-org/gitlab-docs:docs-lint" image: "registry.gitlab.com/gitlab-org/gitlab-docs:lint"
stage: test stage: test
needs: [] needs: []
script: script:
- scripts/lint-doc.sh - scripts/lint-doc.sh
# Lint Markdown # Lint Markdown
- markdownlint --config .markdownlint.json 'doc/**/*.md' - markdownlint --config .markdownlint.json 'doc/**/*.md'
# Lint content (error-level text-scoped rules only)
- vale --minAlertLevel error --ignore-syntax doc
# Prepare docs for build # Prepare docs for build
- mv doc/ /tmp/gitlab-docs/content/$DOCS_GITLAB_REPO_SUFFIX - mv doc/ /tmp/gitlab-docs/content/$DOCS_GITLAB_REPO_SUFFIX
- cd /tmp/gitlab-docs - cd /tmp/gitlab-docs
......
...@@ -123,5 +123,6 @@ ...@@ -123,5 +123,6 @@
"YouTrack" "YouTrack"
], ],
"code_blocks": false "code_blocks": false
} },
"code-fence-style": false
} }
...@@ -75,7 +75,7 @@ must disable the **primary** node. ...@@ -75,7 +75,7 @@ must disable the **primary** node.
single recommendation. You may need to: single recommendation. You may need to:
- Reconfigure the load balancers. - Reconfigure the load balancers.
- Change DNS records (e.g., point the primary DNS record to the **secondary** - Change DNS records (for example, point the primary DNS record to the **secondary**
node in order to stop usage of the **primary** node). node in order to stop usage of the **primary** node).
- Stop the virtual servers. - Stop the virtual servers.
- Block traffic through a firewall. - Block traffic through a firewall.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment