Skip to content

feat: add local docs versioning validation#1427

Merged
400Ping merged 1 commit into
apache:mainfrom
viiccwen:api-docs-versioning-validation
Jul 2, 2026
Merged

feat: add local docs versioning validation#1427
400Ping merged 1 commit into
apache:mainfrom
viiccwen:api-docs-versioning-validation

Conversation

@viiccwen

Copy link
Copy Markdown
Contributor

Related Issues

Closes #1355

Changes

  • Bug fix
  • New feature
  • Refactoring
  • Documentation
  • Test
  • CI/CD pipeline
  • Other

Why

The existing Docusaurus versioning command snapshots whatever is currently present under website/docs/. Generated Python API reference pages are produced by the website sync step, so release managers need a deterministic local command that syncs generated API docs before creating a version snapshot and validates the result before any tag-triggered automation is considered.

How

  • Replaced the website version npm script with a local wrapper script.
  • The wrapper keeps the existing command shape: npm run version -- <release-version>.
  • The command now runs docs sync, creates the Docusaurus docs version, then runs the production website build for local validation.
  • Documented the updated local versioning behavior in website/README.md.

This does not add tag-triggered automation, deploy behavior, or CI commits of generated versioned docs.

Checklist

  • Added or updated unit tests for all changes (not applicable: website script/docs change; verified with local command checks)
  • Added or updated documentation for all changes

Verification:

  • node --check website/scripts/version-docs.js
  • git diff --check upstream/main..HEAD
  • npm run version (verifies required-version usage error)
  • npm run version -- 1355-local-check (temporary generated version removed after verification)

@viiccwen viiccwen requested a review from 400Ping as a code owner June 29, 2026 15:02

@400Ping 400Ping left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@400Ping 400Ping merged commit dccc97d into apache:main Jul 2, 2026
2 checks passed
@viiccwen viiccwen deleted the api-docs-versioning-validation branch July 2, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Add local docs versioning command for release validation

2 participants