Repository navigation
ci: ping IndexNow with the URLs each deploy changed - #533
Merged
Merged
Conversation
Snapshot the live sitemaps before the Pages deploy, then submit the URLs that are new, removed, or whose git-based lastmod changed. The key file is published at the site root. Non-blocking: continue-on-error, waits for the key to be live, retries 429/5xx, logs every HTTP status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
This pull request is merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After each production deploy, this PR submits the changed docs URLs to IndexNow, the protocol Bing, Yandex, Seznam and Naver use to learn about page changes (Google ignores it).
How it works
scripts/templates/d83c04689e7d448be13934efdf3c9f4d.txtholds only the key.npm run redirectscopies it to the site root, as it already does forrobots.txt. The key is public by design.end-of-file-fixernow excludes it..txtfiles are served astext/plain; charset=utf-8(checked on/llms.txt).indexnow.py snapshotsaves the livesitemap-*.xmlfiles to$RUNNER_TEMP.indexnow.py submitcompares the new sitemaps with that snapshot and submits a URL when it:lastmod(now the git date of its source, from docs(seo): JSON-LD, Open Graph, git-dated sitemap lastmod, llms.txt, robots.txt #532), orcontinue-on-errorwith timeouts.main, scheduled runs and manual dispatch inArcadeData/arcadedb-docs, never on PRs or forks.Not verified
lastmod, a removed URL, a new URL) and the key lookup. I sent no POST, so the first real submission happens on the first deploy after merge. That deploy is also when/d83c04689e7d448be13934efdf3c9f4d.txtfirst goes live.core-concepts/chapterwas removed by docs(seo): page titles, release version attribute, thin index pages #531, before this exists, so it won't be submitted automatically. Later removals will be.🤖 Generated with Claude Code