summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorMarkus Koller <mkoller@gitlab.com>2019-07-09 03:01:04 +0000
committerAchilleas Pipinellis <axil@gitlab.com>2019-07-09 03:01:04 +0000
commit385233981aca05f5c2ac2cf68af3688539bba62e (patch)
treebf163dd23549d8a876d7a17fc8e035682f472c68 /.gitlab
parent8a2c53d6400287bbb29056c4d007ee571b292937 (diff)
downloadgitlab-ce-385233981aca05f5c2ac2cf68af3688539bba62e.tar.gz
Centralize config for markdownlint
The configuration is currently only specified in CI, by moving it into `.mdlrc` we get immediate feedback locally in supported editors. To ensure `mdl` is available it's also added to the `Gemfile`, though CI will still use the version installed in the `gitlab-docs-lint` image.
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/docs.gitlab-ci.yml4
1 files changed, 1 insertions, 3 deletions
diff --git a/.gitlab/ci/docs.gitlab-ci.yml b/.gitlab/ci/docs.gitlab-ci.yml
index 57ee91e4385..5bc109f2b7f 100644
--- a/.gitlab/ci/docs.gitlab-ci.yml
+++ b/.gitlab/ci/docs.gitlab-ci.yml
@@ -66,9 +66,7 @@ docs lint:
- mv doc/ /tmp/gitlab-docs/content/$DOCS_GITLAB_REPO_SUFFIX
- cd /tmp/gitlab-docs
# Lint Markdown
- # https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
- - bundle exec mdl content/$DOCS_GITLAB_REPO_SUFFIX/**/*.md --ignore-front-matter --rules \
- MD001,MD032,MD034
+ - bundle exec mdl content/$DOCS_GITLAB_REPO_SUFFIX -c $CI_PROJECT_DIR/.mdlrc
# Build HTML from Markdown
- bundle exec nanoc
# Check the internal links