Commit 31c7bf16 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis Committed by Evan Read

Run markdownlint before Nanoc checks

Make it simpler to run markdownlint by moving it before
we do those hacks to run Nanoc.
parent a390f5ff
......@@ -73,10 +73,11 @@ docs lint:
dependencies: []
script:
- scripts/lint-doc.sh
# Lint Markdown
- markdownlint --config .markdownlint.json doc/**/*.md
# Prepare docs for build
- mv doc/ /tmp/gitlab-docs/content/$DOCS_GITLAB_REPO_SUFFIX
- cd /tmp/gitlab-docs
# Lint Markdown
- markdownlint --config $CI_PROJECT_DIR/.markdownlint.json content/$DOCS_GITLAB_REPO_SUFFIX/**/*.md
# Build HTML from Markdown
- bundle exec nanoc
# Check the internal links
......
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