feat: add robots.txt allowing search engines and AI crawlers#134
Draft
TaprootFreak wants to merge 1 commit into
Draft
feat: add robots.txt allowing search engines and AI crawlers#134TaprootFreak wants to merge 1 commit into
TaprootFreak wants to merge 1 commit into
Conversation
Add a version-controlled robots.txt served from the VuePress public dir (copied to the published site root) that explicitly allows search engines and AI agents to crawl, index, and learn from the public documentation. It grants all content signals (search, ai-input, ai-train) and lists the major AI crawlers individually in addition to the wildcard group, since some honor only their own named record.
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.
Add repo-controlled robots.txt that allows search engines and AI crawlers
This adds a version-controlled
robots.txtfor the public DFX documentation(docs.dfx.swiss) that explicitly allows both search engines and AI agents
to crawl, index, and learn from the content.
What
src/.vuepress/public/robots.txt.vuepress/public/verbatim to the publishedsite root, so it is served at
https://docs.dfx.swiss/robots.txt.search=yes, ai-input=yes, ai-train=yes— andlists the major AI crawlers individually (ClaudeBot, GPTBot, Google-Extended,
CCBot, Bytespider, Amazonbot, Applebot-Extended, meta-externalagent) in
addition to the wildcard group, because some bots honor only their own named
record.
Why
The documentation is public and we want it discoverable by search and usable as
input for AI agents / RAG and training. Keeping the policy in the repo makes it
authoritative and reviewable.
No Sitemap line
The site does not serve or generate a sitemap:
GET /sitemap.xmlreturns asoft-404 (
text/html, the SPA404.html), and the VuePress build outputcontains no
sitemap.xml. ASitemap:directive was therefore intentionallyomitted.
Verification
npm run build; confirmedrobots.txtlands at thepublished root (
dist/robots.txt) with identical content.Note on activation
This file becomes the effective crawl policy only once the site's hosting-level
"Manage robots.txt / Block AI bots" toggle is disabled at the CDN, so that the
repo-served file is what visitors and crawlers receive.