Skip to content

Search indexing for versioned manuals, 2026-12-04

What OINK’s archive pages declare, how three documentation sites handle older releases, and when an old guide needs its own search result.
Dated, non-normative research

Ordinary OINK archive pages in the local production build declare themselves canonical and allow indexing. An older guide can therefore surface for a search that omits the version. Whether it displaces the current guide or costs it clicks remains unmeasured. Google groups pages with identical or very similar main content and treats the publisher’s canonical as a strong preference. It chooses the representative URL. December 2 gap review · Google on canonical selection · Canonical signals

What the 17 archives exposed

The December 4 production build used Hugo 0.171.0, Go 1.27.4 and snapshots of site 9a153d6e1661 and theme 7e90ab5c949c. Both contained uncommitted changes and the counts predate this record. The unprefixed “current” manual was v1.9, the default, highest-numbered edition and still in development. The site pinned the stable theme at v1.8.0. v1.8.0 release

Counting each documentation route with both HTML and Markdown once, including section roots, gave 2,106 archived URLs and 280 current URLs across both languages. Every HTML page in that count had one self-canonical, index, follow and reciprocal English and Chinese hreflang links within its edition. Each URL appeared in its own language sitemap. The root index advertised by robots.txt reached all 280 current docs and zero archived docs. Ordinary links can still lead crawlers to archives.

The shared head emits noindex, nofollow for Print, non-production builds and the test language xx. The working tree also honors roles that disable indexing. Hugo aliases declare their redirect target as canonical. Public GETs at 03:36 UTC returned 200 for the current English and Chinese Tabs pages. The three archive URLs sampled, v1.8 Tabs in both languages and the English v0.1 module-update guide, returned 404. Tagged robots rule · Tagged canonical rule · Hugo alias template

Which newer page preserves the old answer?

RFC 6596 requires the canonical target to duplicate the source or contain it in full. For a manual, that includes the instructions a reader can use on the named release. Three bilingual comparisons illustrate the test. RFC 6596 §3

Local manual page What a reader gets
Tabs, /v1.8/docs/components/tabs/ The instructional text matches /docs/components/tabs/ in each language. To repeat the comparison, take the direct children of .td-content, omit .td-page-heading, .lead, .td-article-meta and .td-page-end, join descendant text with whitespace normalized, and compare within each language. The edition-specific links and archive notice differ. v1.8 manuscript
Brand, /v1.7/docs/customize/brand/ The v1.7 preset_menu example lists four choices. The current six-choice example adds github and news, both introduced in v1.8. v1.7 manuscript · Release notes
Module update, /v0.1/docs/update/hugo-module/ The guide pins @v0.1.0. Its current path has no counterpart. The version menu takes readers to / or /zh/, depending on language. Neither home contains the old procedure. v0.1 manuscript

Publishers use three different policies

Publisher What the sampled pages served on December 4
PostgreSQL The v12 querying tutorial names the current tutorial as canonical. For the removed createlang command, 9.5 names 9.6, the newest matching manual. Its current path returned 404. v12 tutorial · Current tutorial · 9.5 · 9.6 · Selection code
Elastic The Elasticsearch 7.17 Match query page emits noindex,nofollow and links readers to the current article. Its path is explicitly crawlable. 7.17 article · Crawl rules
Docusaurus The 3.9.2 versioning guide is self-canonical and has no robots meta tag. The 3.10.2 docs plugin defaults the per-version noIndex option to false. 3.9.2 guide · Option resolver

Read the Docs’ default version determines where a root visit lands. Its canonical base URL belongs to the version being built. Its own project root redirected to stable. Both the stable and latest articles named themselves canonical, and robots.txt disallowed crawling latest. Build variable · Stable article · Latest article · Crawl rules

Let the site choose what readers should find

Keep archives searchable and self-canonical by default. To consolidate signals across versions, a future option should require a site-chosen stable edition and a reviewed equivalent in the same language. Its canonical URL should serve crawlable, indexable HTML directly with HTTP 200. Keep the old canonical when the only candidate is unrelated, a menu fallback, a redirect or a prerelease, or when the counterpart is missing. Put the edition in the archive title and retain a visible notice linking to the stable counterpart when available.

A separate per-edition noindex opt-in would let a site withdraw an archive from search. Allow crawling so Google can read the directive. Once processed, the URL drops out even for queries naming its release. Independently hosted archives must declare their own tags. Include only preferred, indexable URLs in sitemaps and hreflang sets, pairing actual translations of the same edition reciprocally. Advertise archive language sitemaps from the root only for editions the site wants readers to discover. Google on exclusion · Sitemap guidance · Localized versions

Repeat the checks and measure search outcomes

From the documentation checkout with the sibling theme, build into a fresh directory. The columns count paired routes, membership in any sitemap and reachability from the root. Follow only child sitemap locations and count each page’s <url><loc> once.

out=$(mktemp -d)
make manuals-full manuals_public="$out"
python3 scripts/check-manuals.py "$out"
python3 - "$out" <<'PY'
import sys
from pathlib import Path
from urllib.parse import urlsplit
from xml.etree.ElementTree import parse

out = Path(sys.argv[1])
def locations(file):
    doc = parse(file)
    for loc in doc.findall("{*}sitemap/{*}loc"):
        yield from locations(out / urlsplit(loc.text).path.lstrip("/"))
    for loc in doc.findall("{*}url/{*}loc"):
        yield urlsplit(loc.text).path

root = set(locations(out / "sitemap.xml"))
maps = {url for file in out.rglob("sitemap.xml") for url in locations(file)}
for prefix in ("docs", "zh/docs", "v*/docs", "v*/zh/docs"):
    routes = {"/" + md.parent.relative_to(out).as_posix() + "/"
              for md in out.glob(prefix + "/**/index.md") if md.with_suffix(".html").is_file()}
    print(prefix, len(routes), len(routes & maps), len(routes & root))
PY

Repeat the public GETs separately. For a tag check, inspect the final response headers (Link, X-Robots-Tag) and the HTML head of the page that actually returned.

for path in docs/components/tabs/ zh/docs/components/tabs/ \
    v1.8/docs/components/tabs/ v1.8/zh/docs/components/tabs/ v0.1/docs/update/hugo-module/; do
  curl -sSL --compressed -o /dev/null -w '%{http_code} %{url_effective}\n' "https://oink.pgsty.com/$path"
done

Before a policy change and again after recrawl, use Search Console’s indexed URL Inspection for both pages. Compare the declared and Google-selected canonicals. For each topic and language, compare impressions and clicks for queries with and without a release number over equal periods. Google credits most metrics to the canonical URL. First-party organic landing paths can show which edition readers actually opened. URL Inspection · Performance attribution