Skip to content

feat: add multi-version docs support#237

Open
schacherle wants to merge 1 commit into
shipwright-io:mainfrom
schacherle:feature/multi-version-docs
Open

feat: add multi-version docs support#237
schacherle wants to merge 1 commit into
shipwright-io:mainfrom
schacherle:feature/multi-version-docs

Conversation

@schacherle

Copy link
Copy Markdown

Changes

Enables Docusaurus's native versioned docs so users can view documentation for a specific released version of Shipwright Build, instead of only ever seeing the latest unreleased state.

  • Cuts the first versioned snapshot at 0.20, matching the current latest Build release line (v0.20.x).
  • Uses Docusaurus's default versioning behavior: the unprefixed /docs/ path serves the latest released version (0.20), and the unversioned docs/ folder (tracking main, i.e. unreleased work) serves at /docs/next/. This matches the convention used by Jest, React Native, and Docusaurus's own docs site.
  • Adds a version dropdown to the navbar (right-aligned, before the GitHub link — same placement as docusaurus.io's own site).
  • Documents the versioning workflow in the README for future version cuts.

Note on sequencing vs. SHIP-0041

I'm aware of the (still provisional, unimplemented) SHIP-0041 docs restructure proposal. Cutting a version now means this first 0.20 snapshot stays in the current build/getting-started/ref layout even if/when that restructure lands later — subsequent versions cut after a restructure would just pick up the new layout. This is the same tradeoff every project with versioned docs eventually hits (older versions naturally look structurally different from current docs), so I don't think it should block this from landing. Happy to hold off if maintainers feel otherwise.

Related Issue

Fixes #136

Type of PR

/kind feature

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Kind label has been set
  • Release notes block has been filled in, or marked NONE

Release Notes

Documentation is now versioned. The `/docs/` path serves the latest released version, and in-progress/unreleased docs are available at `/docs/next/`.

Enable native versioning for a specific version of Shipwright Build

Add version dropdown to navbar

Fixes shipwright-io#136

Signed-off-by: Ernst Schacherl <git+shipwright@schacherl.dev>
@openshift-ci openshift-ci Bot added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 10, 2026
@openshift-ci

openshift-ci Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign saschaschwarze0 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pull-request-size pull-request-size Bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Categorizes issue or PR as related to a new feature. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[FEATURE] Multi-version Support in Docs

2 participants