Compare commits
No commits in common. "07583c8283f9d17523808a3b2a584007a930e200" and "15d4d63f24e5823ec3a44d4c36e7193e7bec4174" have entirely different histories.
07583c8283
...
15d4d63f24
|
|
@ -212,9 +212,7 @@ jobs:
|
||||||
overall_fail=1
|
overall_fail=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q "# BEGIN playbook .gitattributes" .gitattributes 2>/dev/null \
|
if grep -q "# BEGIN playbook .gitattributes" .gitattributes 2>/dev/null; then
|
||||||
|| grep -q "# Added from playbook .gitattributes" .gitattributes 2>/dev/null \
|
|
||||||
|| grep -q "^\\* text=auto eol=lf" .gitattributes 2>/dev/null; then
|
|
||||||
echo "✅ .gitattributes 更新成功"
|
echo "✅ .gitattributes 更新成功"
|
||||||
else
|
else
|
||||||
echo "❌ .gitattributes 更新失败"
|
echo "❌ .gitattributes 更新失败"
|
||||||
|
|
|
||||||
|
|
@ -54,10 +54,7 @@ fi
|
||||||
|
|
||||||
timestamp="$(date +%Y%m%d%H%M%S 2>/dev/null || echo bak)"
|
timestamp="$(date +%Y%m%d%H%M%S 2>/dev/null || echo bak)"
|
||||||
|
|
||||||
if [ ! -d "$PROJECT_ROOT" ]; then
|
mkdir -p "$PROJECT_ROOT"
|
||||||
echo "ERROR: project root does not exist: $PROJECT_ROOT" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
PROJECT_ROOT_ABS="$(CDPATH= cd -- "$PROJECT_ROOT" && pwd -P)"
|
PROJECT_ROOT_ABS="$(CDPATH= cd -- "$PROJECT_ROOT" && pwd -P)"
|
||||||
DEST_PREFIX="$PROJECT_ROOT_ABS/docs/standards/playbook"
|
DEST_PREFIX="$PROJECT_ROOT_ABS/docs/standards/playbook"
|
||||||
DEST_STANDARDS="$PROJECT_ROOT_ABS/docs/standards"
|
DEST_STANDARDS="$PROJECT_ROOT_ABS/docs/standards"
|
||||||
|
|
|
||||||
|
|
@ -100,19 +100,13 @@ extract_links() {
|
||||||
|
|
||||||
gsub(/`[^`]*`/, "", line)
|
gsub(/`[^`]*`/, "", line)
|
||||||
|
|
||||||
while (match(line, /\[[^]]+\]\([^)]*\)/)) {
|
while (match(line, /\[[^]]+\]\(([^)]+)\)/, m)) {
|
||||||
link = substr(line, RSTART, RLENGTH)
|
print NR "\t" m[1]
|
||||||
sub(/^\[[^]]+\]\(/, "", link)
|
|
||||||
sub(/\)$/, "", link)
|
|
||||||
print NR "\t" link
|
|
||||||
line = substr(line, RSTART + RLENGTH)
|
line = substr(line, RSTART + RLENGTH)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match(line, /^\[[^]]+\]:[[:space:]]*[^[:space:]]+/)) {
|
if (match(line, /^\[[^]]+\]:[[:space:]]*(.+)/, ref)) {
|
||||||
link = substr(line, RSTART, RLENGTH)
|
print NR "\t" ref[1]
|
||||||
sub(/^\[[^]]+\]:[[:space:]]*/, "", link)
|
|
||||||
sub(/[[:space:]].*$/, "", link)
|
|
||||||
print NR "\t" link
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
' "$1"
|
' "$1"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue