From 18e326b14bba0abe88dc9c61b0a72b31409b1928 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 14 Nov 2023 21:26:25 +0100 Subject: [PATCH] only check links on ci/cd --- scripts/check-doc.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/check-doc.sh b/scripts/check-doc.sh index ddd1a8e..bb72a9f 100755 --- a/scripts/check-doc.sh +++ b/scripts/check-doc.sh @@ -21,10 +21,15 @@ if ! which remark >/dev/null 2>&1; then exit 1 fi -echo "------------------------" -echo "checking internal links" -find . -type f -iname '*.md' | while read -r line; do - remark -f -u validate-links "${line}" -done +in_cicd="${GH_WORKFLOW:-}" +if [ -n "${in_cicd}" ]; then + echo "------------------------" + echo "checking internal links" + find . -type f -iname '*.md' | while read -r line; do + remark -f -u validate-links "${line}" + done +else + echo "not checking internal links..." +fi echo "documentation OK"