Repository navigation
[Trace] Noindex the empty docs.turbodocx.com root page - #176
Merged
Merged
Conversation
/ renders ~1 word to a first-pass crawler: it's a client-side redirect (<Redirect to="/docs" /> from @docusaurus/router) to the real hub at /docs. Per config/noindex-strategy.json (auto-noindex under 100 words), add a noindex,follow meta tag via @docusaurus/Head and exclude / from the sitemap plugin's ignorePatterns so the two signals agree. A server-side redirect (e.g. a Cloudflare Pages static/_redirects entry) would be the long-term fix so crawlers and users never hit the client-rendered stub at all, but that's out of scope here.
This branch was successfully deployed
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.
Closes #175
Trace task:
config/noindex-strategy.json(auto-noindex under 100 rendered words) from theai-seo-playbook, applied to the Docs site.Evidence
https://docs.turbodocx.com/renders ~1 word to a first-pass crawler (from/home/nicolas/.claude/jobs/4fe2c970/tmp/prune.json:words: 1,clicks90: 1,impr90: 81), well under the strategy's 100-word auto-noindex threshold and the >100 clicks/month guard.What
/turned out to besrc/pages/index.tsxis not a landing page — it renders<Redirect to="/docs" />from@docusaurus/router, a client-side redirect to the real documentation hub at/docs(30 words, 4 clicks/90d, already indexed and fine). Crawlers that don't execute JS see an effectively empty page.Changes
src/pages/index.tsx: added<meta name="robots" content="noindex, follow" />via@docusaurus/Head.docusaurus.config.js: addedsitemap.ignorePatterns: ['/']so the sitemap plugin doesn't list a page with a conflicting noindex tag (Docusaurus 3.10's sitemap plugin also auto-excludes noindexed pages at build time from rendered HTML, so this is belt-and-suspenders).Not done here (noted in the CR)
/is a client-side redirect, so crawlers and users still make a request to the empty stub before JS redirects them. The long-term fix is a server-side redirect (a Cloudflare Pagesstatic/_redirectsentry,/ /docs 301or similar) so nobody ever renders the stub. Out of scope for this noindex-only change; flagging for a follow-up.Test plan
/route itself; no slug changes