Skip to content

fix: make docs/ the default version and sync v2.8.0 snapshot#369

Open
mesutoezdil wants to merge 1 commit into
Project-HAMi:masterfrom
mesutoezdil:fix/sync-v2.8.0-contributor-docs
Open

fix: make docs/ the default version and sync v2.8.0 snapshot#369
mesutoezdil wants to merge 1 commit into
Project-HAMi:masterfrom
mesutoezdil:fix/sync-v2.8.0-contributor-docs

Conversation

@mesutoezdil
Copy link
Copy Markdown
Contributor

@mesutoezdil mesutoezdil commented May 11, 2026

Problem

The website defaulted to the v2.8.0 versioned snapshot instead of the current docs. This caused two issues:

  1. All improvements merged to docs/ were invisible on the live site despite being in master.
  2. Contributors edited versioned_docs/version-v2.8.0/ directly to make changes visible, which caused the snapshot to diverge from docs/ over time.

Changes

Commit 1 - Sync 97 files in v2.8.0 snapshot:
Copies all files where versioned_docs/version-v2.8.0/ had fallen behind docs/. Covers contributor guides, installation, userguide, developers, core-concepts, get-started, faq, troubleshooting, key-features, and releases.

Commit 2 - Set lastVersion: 'current' in docusaurus.config.js:
Makes docs/ the default shown at /docs/. Versioned snapshots remain accessible at /docs/v2.8.0/, /docs/v2.7.0/, etc. The version dropdown labels current docs as "latest".

After this change, any PR merged to docs/ immediately appears on the live site. No more manual syncing of versioned snapshots.

Test plan

  • npm run build:fast passes (English only)
  • npm run build passes (English + Chinese)
  • diff -rq docs/ versioned_docs/version-v2.8.0/ --exclude="*.json" reports 0 differing files

@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for project-hami ready!

Name Link
🔨 Latest commit e0e73d2
🔍 Latest deploy log https://app.netlify.com/projects/project-hami/deploys/6a01ca2d75268a00084c0112
😎 Deploy Preview https://deploy-preview-369--project-hami.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hami-robot hami-robot Bot added the size/XXL label May 11, 2026
@mesutoezdil mesutoezdil changed the title docs: sync v2.8.0 contributor docs with rewritten current versions docs: sync entire v2.8.0 snapshot with current docs (97 files) May 11, 2026
@mesutoezdil mesutoezdil changed the title docs: sync entire v2.8.0 snapshot with current docs (97 files) fix: make docs/ the default version and sync v2.8.0 snapshot May 11, 2026
The website defaulted to the v2.8.0 versioned snapshot. All content
improvements merged to docs/ since v2.8.0 were invisible on the live
site. Contributors edited versioned_docs directly, causing ongoing
divergence.

- docusaurus.config.js: set lastVersion:'current' so docs/ is shown
  at /docs/ (labeled 'latest'); v2.8.0 moves to /docs/v2.8.0/
- versioned_docs/version-v2.8.0/: sync all 98 files with current docs/

After this merge, any PR to docs/ immediately appears on the live site.

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
@mesutoezdil mesutoezdil force-pushed the fix/sync-v2.8.0-contributor-docs branch from 01e3233 to e0e73d2 Compare May 11, 2026 12:23
Copy link
Copy Markdown
Contributor

@rootsongjc rootsongjc left a comment

Choose a reason for hiding this comment

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

/lgtm

@hami-robot
Copy link
Copy Markdown
Contributor

hami-robot Bot commented May 11, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mesutoezdil, rootsongjc
Once this PR has been reviewed and has the lgtm label, please assign wawa0210 for approval. For more information see the Kubernetes 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants