Run markdownlint before Nanoc checks

Make it simpler to run markdownlint by moving it before
we do those hacks to run Nanoc.
This commit is contained in:
Achilleas Pipinellis 2019-08-27 09:15:15 +00:00 committed by Evan Read
parent a390f5ff05
commit 31c7bf16aa

View file

@ -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