🔧 fix(sync): rewrite docs path in agents

This commit is contained in:
csh 2026-01-12 16:16:51 +08:00
parent c98d65c1f1
commit b0ca842c72
1 changed files with 5 additions and 5 deletions

View File

@ -128,11 +128,11 @@ if [ -n "$REL_SNAPSHOT" ]; then
[ -f "$md" ] || continue
tmp="$(mktemp 2>/dev/null || echo "$AGENTS_DST/.rewrite.$(basename "$md").$timestamp")"
sed \
-e "s#\\\`docs/tsl/#\\\`$DOCS_PREFIX/tsl/#g" \
-e "s#\\\`docs/cpp/#\\\`$DOCS_PREFIX/cpp/#g" \
-e "s#\\\`docs/python/#\\\`$DOCS_PREFIX/python/#g" \
-e "s#\\\`docs/markdown/#\\\`$DOCS_PREFIX/markdown/#g" \
-e "s#\\\`docs/common/#\\\`$DOCS_PREFIX/common/#g" \
-e "s#\`docs/tsl/#\`$DOCS_PREFIX/tsl/#g" \
-e "s#\`docs/cpp/#\`$DOCS_PREFIX/cpp/#g" \
-e "s#\`docs/python/#\`$DOCS_PREFIX/python/#g" \
-e "s#\`docs/markdown/#\`$DOCS_PREFIX/markdown/#g" \
-e "s#\`docs/common/#\`$DOCS_PREFIX/common/#g" \
"$md" >"$tmp"
mv "$tmp" "$md"
done