From 33e02beea4036aa5be516cb04a36a19edacbc740 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 15 Sep 2020 23:04:14 +0200 Subject: [PATCH] move to markdown-link-check for external links --- .travis.yml | 2 +- tests.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index d10fe85..2f2bf66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ install: - "pip install -r tests-requirements.txt" - "pip install -r requirements.txt" - "npm install -g remark-cli remark-validate-links" - - "env GO111MODULE=on go get -u github.com/raviqqe/liche" + - "npm install -g markdown-link-check" script: ./tests.sh after_success: diff --git a/tests.sh b/tests.sh index 7421f75..06266c7 100755 --- a/tests.sh +++ b/tests.sh @@ -82,17 +82,17 @@ else remark -f -u validate-links *.md fi -## test the doc with liche -## https://github.com/raviqqe/liche/ +## test the doc with markdown-link-check +## https://github.com/tcort/markdown-link-check set +e -which liche >/dev/null 2>&1 +which markdown-link-check >/dev/null 2>&1 r="$?" set -e if [ "$r" != "0" ]; then - echo "[WARNING] install \"liche\" to test the doc" + echo "[WARNING] install \"markdown-link-check\" to test the doc" else - liche -r -v docs - liche -v README.md + for i in `find docs -iname '*.md'`; do markdown-link-check $i; done + markdown-link-check README.md fi ## done