Allow crawlers on package landing pages and biocViews - #403
Open
seandavi wants to merge 1 commit into
Open
Conversation
robots.txt disallowed /packages/release/, /packages/devel/ and /biocViews/, which blocks the package landing pages, the browse tree and every rendered vignette from being crawled. Analytics show roughly 70% of sessions land directly on /packages/*, and Organic Search accounts for about 74% of sessions, so this blocks the site's main entry point. The numbered-release paths stay disallowed, including /packages/3.23/ and /packages/3.24/, so the versioned aliases of release and devel do not compete with the canonical URLs. Refs #398 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YBSvPwEk6sH1rhGmjPmsFq
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.
Refs #398.
Removes three
Disallow:lines fromassets/robots.txt:These block crawling of the package landing pages, the biocViews browse tree, and every rendered vignette — the largest content set on the site.
Why
GA4 data for the property, measured over 2024-07 → 2025-07 (a window chosen to predate a large bot-traffic influx starting 2025-08 that would skew more recent figures):
/packages/*pageSearch is the dominant way people reach this site, and package pages are where they arrive — while
robots.txttells crawlers to ignore exactly those pages. The observable result is that searches for package documentation surface third-party mirrors on older releases instead of the origin.What is deliberately left blocked
/packages/3.23/and/packages/3.24/— the versioned aliases of current release and devel. Leaving these disallowed means the canonical/packages/release/…URLs don't compete with duplicate versioned copies for the same content. Removing them too would be defensible if paired withrel=canonical, but that's a separate change./packages/bioc/,/packages/data/,/repository/,/checkResults/,/stats/and the rest — repository internals and generated reports, not user-facing documentation.Caveat worth naming
This helps crawlability but does not fully fix discoverability on its own.
sitemap.xmlstill serves 20 bytes containing the literal string<%= xml_sitemap %>(#57 — I've commented there with what appears to be the root cause, an emptycompile '/sitemap/'rule inRules:12-14that never appliesfilter :erb). Package pages also emit norel=canonicalwhile resolving at five or more URLs. Those are worth doing too; this is the one-line prerequisite.Nothing here is verifiable by a build —
robots.txtis copied verbatim to the site root — so the check is just reading the diff.🤖 Generated with Claude Code
https://claude.ai/code/session_01YBSvPwEk6sH1rhGmjPmsFq