mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 20:54:51 +00:00
only check links on ci/cd
This commit is contained in:
15
scripts/check-doc.sh
vendored
15
scripts/check-doc.sh
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user