From 31c7bf16aa9adef361818d7cdfd4c7141556b433 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Tue, 27 Aug 2019 09:15:15 +0000 Subject: [PATCH] Run markdownlint before Nanoc checks Make it simpler to run markdownlint by moving it before we do those hacks to run Nanoc. --- .gitlab/ci/docs.gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab/ci/docs.gitlab-ci.yml b/.gitlab/ci/docs.gitlab-ci.yml index 1fad731543c..e77c773824f 100644 --- a/.gitlab/ci/docs.gitlab-ci.yml +++ b/.gitlab/ci/docs.gitlab-ci.yml @@ -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