Skip to content
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

Draft
wants to merge 5 commits into
base: production
Choose a base branch
from

Conversation

pedrosousa
Copy link
Contributor

Summary

Update API link crawler/checker after migrating to the new API site.

Copy link

cloudflare-workers-and-pages bot commented Dec 17, 2024

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 221e05d
Status: ✅  Deploy successful!
Preview URL: https://0477ecd4.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://pedro-2024-12-17-docs-update-dhen.cloudflare-docs-7ou.pages.dev

View logs

@@ -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",
Copy link
Contributor Author

@pedrosousa pedrosousa Jan 3, 2025

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.

else request.continue();
});

const sitemapUrl = "https://developers.cloudflare.com/sitemap-0.xml";
Copy link
Contributor Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants