mirror of
https://github.com/containous/traefik.git
synced 2024-12-22 13:34:03 +03:00
ac6b11037d
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
17 lines
485 B
Bash
Executable File
17 lines
485 B
Bash
Executable File
#!/bin/sh
|
|
# This script will run a couple of linter on the documentation
|
|
|
|
set -eu
|
|
|
|
# We want to run all linters before returning success (exit 0) or failure (exit 1)
|
|
# So this variable holds the global exit code
|
|
EXIT_CODE=0
|
|
readonly BASE_DIR=/app
|
|
|
|
echo "== Linting Markdown"
|
|
# Uses the file ".markdownlint.json" for setup
|
|
cd "${BASE_DIR}" || exit 1
|
|
markdownlint --config ${BASE_DIR}/content/includes/.markdownlint.json "${BASE_DIR}/content/**/*.md" || EXIT_CODE=1
|
|
|
|
exit "${EXIT_CODE}"
|