Skip to content

[codex] publish robots.txt#128

Merged
basit3407 merged 1 commit intomainfrom
codex/publish-robots-txt
Apr 20, 2026
Merged

[codex] publish robots.txt#128
basit3407 merged 1 commit intomainfrom
codex/publish-robots-txt

Conversation

@basit3407
Copy link
Copy Markdown
Collaborator

What changed

  • add static/robots.txt so the site publishes /robots.txt from the site root
  • define explicit crawl rules with a global User-agent group
  • block low-value or private routes from crawling: /search and /request-scopes
  • advertise the public sitemap at https://api-docs.quran.foundation/sitemap.xml

Why

The site did not publish /robots.txt, so discoverability checks failed and crawlers had no explicit crawl policy for the docs site.

Impact

  • /robots.txt will exist at the site root after deploy
  • crawlers get a clear allow/disallow policy
  • the docs sitemap becomes discoverable from the robots file

Root cause

The site root was missing a robots.txt asset.

Validation

  • served static/robots.txt locally and verified GET /robots.txt returns 200
  • verified the response Content-Type is text/plain
@basit3407 basit3407 marked this pull request as ready for review April 20, 2026 05:07
@basit3407 basit3407 requested a review from Copilot April 20, 2026 05:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a robots.txt static asset so the Docusaurus site publishes an explicit crawler policy at /robots.txt, including disallow rules for selected routes and a sitemap reference.

Changes:

  • Add static/robots.txt served from the site root.
  • Define User-agent: * rules allowing / while disallowing /search and /request-scopes.
  • Advertise the sitemap at https://api-docs.quran.foundation/sitemap.xml.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying qf-api-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0a3a89
Status: ✅  Deploy successful!
Preview URL: https://5d6dd0f3.qf-api-docs.pages.dev
Branch Preview URL: https://codex-publish-robots-txt.qf-api-docs.pages.dev

View logs

@basit3407 basit3407 merged commit ad1f4c3 into main Apr 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants