-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] Update API link crawler #18794
base: production
Are you sure you want to change the base?
[Docs] Update API link crawler #18794
Conversation
Deploying cloudflare-docs with Cloudflare Pages
|
@@ -11,6 +11,7 @@ | |||
"check:astro": "npm run sync && astro check", | |||
"check:functions": "npx tsc --noEmit -p ./functions/tsconfig.json", | |||
"check:worker": "npx tsc --noEmit -p ./worker/tsconfig.json", | |||
"crawl-api-links": "node bin/crawl-api-links.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used in our scheduled action that checks API links. Currently returning an error because this entry in scripts
is missing.
bin/crawl-api-links.js
Outdated
else request.continue(); | ||
}); | ||
|
||
const sitemapUrl = "https://developers.cloudflare.com/sitemap-0.xml"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The real XML file containing all the URLs (after one redirect and one loc
attribute).
Summary
Update API link crawler/checker after migrating to the new API site.