mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-05 03:54:47 +00:00
Merge remote-tracking branch 'origin/fix-418'
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"
|
||||
|
||||
@@ -31,6 +31,7 @@ VALID_RET = [
|
||||
]
|
||||
IGNORES = [
|
||||
'badgen.net',
|
||||
'coveralls.io',
|
||||
]
|
||||
OK_WHEN_FORBIDDEN = [
|
||||
'linux.die.net'
|
||||
|
||||
Reference in New Issue
Block a user