# 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.

---

LLMS index: [llms.txt](/llms.txt)

---

> [!NOTE] 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](/docs/design/research/2026-12-02-gap-review/#gap-versions) · [Google on canonical selection](https://developers.google.com/search/docs/crawling-indexing/canonicalization) · [Canonical signals](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)

## What the 17 archives exposed {#archive-output}

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](/release/1.8.0/)

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](https://github.com/pgsty/oink/blob/v1.8.0/layouts/%5Fpartials/head.html#L131-L137) · [Tagged canonical rule](https://github.com/pgsty/oink/blob/v1.8.0/layouts/%5Fpartials/seo-alternates.html#L1-L10) · [Hugo alias template](https://github.com/gohugoio/hugo/blob/v0.171.0/tpl/tplimpl/embedded/templates/alias.html#L3-L8)

## Which newer page preserves the old answer? {#page-equivalence}

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](https://www.rfc-editor.org/rfc/rfc6596.html#section-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](https://github.com/pgsty/oink.pgsty.com/blob/b1d2cb981f1b3c4954fa8c1060faf519a38b472c/content/docs/components/tabs.md) |
| 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](https://github.com/pgsty/oink.pgsty.com/blob/50819366af2cfd54f5ac672b3d799f178822d5a1/content/docs/customize/brand.md) · [Release notes](/release/1.8.0/#presets) |
| 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](https://github.com/pgsty/oink.pgsty.com/blob/d9b13d8809951786283af210451b4ae3f0eb6396/content/docs/update/hugo-module.md) |

## Publishers use three different policies {#deployed-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](https://www.postgresql.org/docs/12/tutorial-select.html) · [Current tutorial](https://www.postgresql.org/docs/current/tutorial-select.html) · [9.5](https://www.postgresql.org/docs/9.5/app-createlang.html) · [9.6](https://www.postgresql.org/docs/9.6/app-createlang.html) · [Selection code](https://github.com/postgres/pgweb/blob/392a4684e4ad25cb1eb275fca9a102687c55ede1/pgweb/docs/views.py#L124-L153) |
| 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](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/query-dsl-match-query.html) · [Crawl rules](https://www.elastic.co/robots.txt) |
| 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](https://docusaurus.io/docs/3.9.2/versioning) · [Option resolver](https://github.com/meta/docusaurus/blob/f37f9035584917a97a260b91fc2842cba4f8b94f/packages/docusaurus-plugin-content-docs/src/versions/version.ts#L143-L148) |

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](https://docs.readthedocs.com/platform/stable/reference/environment-variables.html#envvar-READTHEDOCS_CANONICAL_URL) · [Stable article](https://docs.readthedocs.com/platform/stable/canonical-urls.html) · [Latest article](https://docs.readthedocs.com/platform/latest/canonical-urls.html) · [Crawl rules](https://docs.readthedocs.com/robots.txt)

## Let the site choose what readers should find {#site-policy}

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](https://developers.google.com/search/docs/crawling-indexing/block-indexing) · [Sitemap guidance](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#general-guidelines) · [Localized versions](https://developers.google.com/search/docs/specialty/international/localized-versions#all-method-guidelines)

## Repeat the checks and measure search outcomes {#verification}

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.

```sh
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.

```sh
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](https://support.google.com/webmasters/answer/9012289?hl=en#google-selected-canonical) · [Performance attribution](https://support.google.com/webmasters/answer/17011259?hl=en#canonical-url)

---

Backlinks:

- [Research](/docs/design/research/)
