docs: add nofollow to View as Markdown links. - #38411
Conversation
Raw Markdown copies under /docs/markdown-docs/ are duplicate content. Crawl blocking for those URLs is owned by the marketing site robots.txt. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@nisarhassan12 should we add nofollow or should we mark the html as canonical? It's quite useful for agents search the web and land on our markdown docs when they can - what's the best practice here? |
|
Thanks @maheshwarip Good call. I'll close this PR. The HTML pages already mark themselves as canonical, so Google should keep ranking /docs/... as the main result. nofollow on “View as Markdown” doesn’t really help with that, and it can make it harder for coding agents to notice the .md link. The Google crawl-budget fix is the robots.txt change in www-temporary. I’d keep the HTML docs fully searchable, and only stop Google from crawling the raw .md copies as duplicates. People and agents can still open the markdown URL if they have the link. |
Pull request was closed
Summary
rel="nofollow"to the "View as Markdown" links so HTML docs stop advertising/docs/markdown-docs/URLs to crawlers.https://materialize.com/robots.txtthe remainder of the changes are made there.