Date: 2026-08-08 18:21 Summary: Added IndexNow incremental submit via local state file and optional --since-git mapping.
[question] indexnow增加实现增量推送功能
[try to solve]
Added incremental submit in ops/seo/submit-indexnow.mjs:
- State file
.run/indexnow-state.json(gitignore): records URLs successfully submitted. --incremental: candidate URLs minus those already in state, then POST; write state back on success.--baseline: write currently collected URLs into state without POST (avoids a full re-push after cold start).--since-git <ref>: mapgit diff ref...HEADtool/page changes → multilingual URLs; when used alone, does not pull the full sitemap.--reset-state/--state-file/--no-save-state.- npm scripts:
indexnow:incremental,indexnow:baseline,indexnow:since-git; docs synced inops/README.md,docs/SEO_PUBLISH_CHECKLIST.md.
Checks: --baseline --remote-sitemap wrote 420; then --incremental pending=0; --since-git HEAD~3 --dry-run expands changed-tool URLs.
[actions]
- ops/seo/submit-indexnow.mjs
- ops/seo/submit-indexnow.sh
- package.json
- ops/README.md
- docs/SEO_PUBLISH_CHECKLIST.md