Repository navigation
Versioned documentation snapshots - #181
GuanzhouSong wants to merge 14 commits into
Conversation
866f3d9 to
2106094
Compare
xgerman
left a comment
There was a problem hiding this comment.
The versioning UX and mockups are generally strong: the current version remains the default, archived pages are clearly marked, same-page switching is useful, and keeping archived pages out of search results is the right choice. My reservation is about priority and information architecture. Version history should remain a secondary documentation utility; it should not compete with the paved onboarding path or the API reference, and it should not be promoted on the main product homepage.
The current placement at the bottom of /docs, below the primary section cards, is reasonable. I would preserve that hierarchy and make it explicit:
- Get started — visually primary, with the Docker-based paved road from setup through the first query.
- API and command reference — equally easy to discover for existing users who need to determine whether a command, operator, parameter, or behavior is supported.
- Drivers, deployment, operations, architecture, and samples.
- Release notes · Documentation versions — secondary utility links at the bottom.
This is how comparable projects avoid confusing new users:
- MongoDB defaults to its current manual and product/task navigation; version selection is contextual inside the manual.
- OpenSearch defaults to
/latest/, emphasizes capabilities, clients, and API reference, and exposes version switching within documentation. - PostgreSQL leads with View the current manual and lists older manuals separately.
- Kubernetes defaults to current task-oriented documentation while keeping the version selector globally available but unobtrusive.
- Valkey keeps quick-start and command-reference paths distinct rather than asking a new visitor to choose a documentation version first.
I would also change the proposed snapshot policy. Before 1.0, snapshotting every DocumentDB release will produce a rapidly rotating collection of partially obsolete docs and multiply gaps in the current reference material. The highest-priority need is accurate, discoverable API/command documentation and a single paved getting-started path.
Suggested policy:
- Begin the formal snapshot policy with 1.0, or snapshot pre-1.0 only when a release introduces a meaningful compatibility or installation change.
- After 1.0, snapshot supported release lines rather than every patch/build release.
- Keep the current release plus the previous two supported lines hosted; link older versions to immutable tags.
- Generate/version the API reference directly from the matching release source or tag. This is the highest-value versioned content because it must match the installed product exactly.
- Keep archived pages
noindex, immutable, clearly bannered, and one click away from the equivalent current page, as this PR already does.
So my recommendation is to keep most of the implementation and visual design, but make current docs and the API reference the product experience, with versions as an expert utility underneath them—not another decision a newcomer must make.
Compile docs from tags of the content repository into versioned/<label>/ and serve them under /docs/versions/<label>/, so a reader on an older release can find the docs that shipped with it. Sidebar and breadcrumb links stay inside the version. Absolute documentdb.io links in a snapshot's own Markdown still go to current docs, because snapshots are never rewritten. Archived pages are noindex, which also keeps them out of sitemap.xml: the generator already skips pages that say so about themselves. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Both controls derived their "current" label from the newest snapshot label, but a snapshot is by definition an older release - so each printed the same version twice. The switcher showed "Current (v0.114-0, latest)" directly above "v0.114-0 (archived)", and the versions index showed "Current - v0.114-0" above "v0.114-0 archived snapshot", in two controls whose only job is telling versions apart. Read the tag from a server-safe constant instead. FALLBACK_RELEASE lives in a client module and arrives in server code as a client reference, rendering as "undefined", and its object literal is parsed by the CI release drift check so it cannot be refactored. A test pins the two together so they cannot drift. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
The v0.117-0 tag on documentdb/docs marks the docs as of 0.117's release day, before the 1.0 release-candidate pages. Current docs now describe 1.0 flags and defaults, and a 0.117 container exits on the new flags. Labelled by release line, so the URL stays put across patch builds. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
/docs/release-notes only existed on the docs fork. From an archived page, the 1.0 notes are also the way forward: what changed since 0.117 and how to upgrade. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Each snapshot carried a full copy of the API reference that no route renders. A versioned reference can follow at 1.1; 0.117 and 1.0 differ in only a dozen reference pages. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Current docs carry no "added in" annotations to speak of, and 1.0 removed the "since" markers from the configuration reference. Releases before v0.117 were never tagged, so promise tags only for snapshots that rotate off. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
2106094 to
9767c99
Compare
|
Rebased onto main and reworked for 1.0 along the lines of your September review. The fork demo commit is gone: snapshots now build from new tags on documentdb/docs, with v0.117 as the one hosted snapshot. Since your approval I also dropped the deploy workflow's base-path change, pointed the release-notes links at the 1.0 notes instead of a fork-only page, stopped copying the API reference into snapshots, and corrected the versions page copy. |
The switcher read "Current (v1.0-0, latest)" next to "v0.117". Label current by release line too, matching the snapshots. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
The banner scrolled away, so a reader who scrolled or arrived on a section link lost the version. A slim bar now sticks under the navbar. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
From Linux Packages Quick Start, v0.117 opened the Getting Started overview although the snapshot has the same page as Pre-built Packages. The switcher now reads the moved-pages table both ways, and says when a page has no counterpart instead of silently falling back. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
The docs link across sections with absolute documentdb.io URLs, so every such link on an archived page opened current docs in a new tab. Point them at the snapshot's own copy when it has one; the rest still go to the current site, as the archived page now says. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
A reader on an unlisted release couldn't tell whether docs for it exist. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Live demo on my fork, built from this PR's head with only the fork's base path added: start at the versions index, open DocumentDB Local as of v0.117, or use the version switcher on any current docs page.
documentdb.io only documents the latest release, and since 1.0 that misleads anyone still on 0.117. Today's DocumentDB Local page offers
--disable-usage-telemetryand--toast-compression, and a 0.117 container exits on either withUnexpected argument. Configuration defaults and container behavior changed too.Annotating changes in place doesn't cover it. 1.0 removed the "since v0.1xx" markers from the configuration reference, and no annotation can show a page as it was.
Policy, as proposed in review: snapshot release lines starting at 1.0, host current plus the two previous lines, and leave older ones as tags. v0.117 is the one pre-1.0 snapshot, since 1.0 is where its docs stopped applying. Archived pages are noindex and never edited. A slim bar stays on screen while reading, one click from the same page in current docs, and the switcher follows renamed pages. Versions stay a utility link at the bottom of /docs.
Snapshots build from tags on documentdb/docs, which now exist.
v0.117-0is the docs on 0.117's release day, before the 1.0 RC pages.v1.0-0is ready for when 1.1 ships. Every release needs a docs tag from here on.Docs links inside a snapshot stay in its version. Downloads, the API reference and other site pages still go to the current release, and archived pages say so. The API reference isn't versioned yet: 0.117 and 1.0 differ in about a dozen reference pages, so that can follow at 1.1.