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:
parent
a390f5ff05
commit
31c7bf16aa
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue