Skip to content

document release process automation#1010

Merged
karmada-bot merged 1 commit into
karmada-io:mainfrom
zhzhuang-zju:automatic
May 26, 2026
Merged

document release process automation#1010
karmada-bot merged 1 commit into
karmada-io:mainfrom
zhzhuang-zju:automatic

Conversation

@zhzhuang-zju
Copy link
Copy Markdown
Contributor

What type of PR is this?
/kind feature

What this PR does / why we need it:
Add automated scripts to complete document release and update the Documentation Releasing guide, so as to reduce workload when releasing new versions or synchronizing the Karmada repository.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

@karmada-bot karmada-bot added the kind/feature Categorizes issue or PR as related to a new feature. label May 20, 2026
@karmada-bot karmada-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 20, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request automates the document releasing and reference update processes by introducing a suite of bash and Node.js scripts, replacing previously manual steps. The documentation has been updated to reflect these changes. Feedback focuses on correcting file paths within the new scripts and ensuring the release script correctly utilizes the sidebar extraction tool to avoid environment-specific dependency issues.

Comment thread infra/document-releasing/hack/release.sh Outdated
Comment thread infra/document-releasing/hack/extract-sidebar.js Outdated
Comment thread infra/document-releasing/hack/extract-sidebar.js Outdated
@zhzhuang-zju
Copy link
Copy Markdown
Contributor Author

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request automates the Karmada website release process by introducing a suite of scripts for updating references, managing releases, and pruning old versions, while updating the developer documentation to reflect these new workflows. Feedback focuses on improving the robustness of the automation, specifically by broadening a regex to handle different quote styles and ensuring temporary file cleanup in extract-sidebar.js, as well as preventing duplicate version entries in versions.json during the release process.

Comment thread infra/document-releasing/hack/extract-sidebar.js Outdated
Comment thread infra/document-releasing/hack/extract-sidebar.js Outdated
Comment thread infra/document-releasing/hack/release.sh Outdated
@zhzhuang-zju
Copy link
Copy Markdown
Contributor Author

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request automates the Karmada website release and documentation update process by introducing a suite of scripts for generating reference docs, creating new releases, and pruning old versions. The developer documentation has been updated to reflect these automated workflows. Feedback focused on improving the robustness of the automation scripts, specifically by ensuring error messages are directed to standard error and using more reliable file-copying patterns to handle hidden files.

Comment thread infra/document-releasing/hack/extract-sidebar.js
Comment thread infra/document-releasing/hack/release.sh
Comment thread infra/document-releasing/hack/release.sh
@zhzhuang-zju
Copy link
Copy Markdown
Contributor Author

/cc @RainbowMango

@karmada-bot karmada-bot requested a review from RainbowMango May 20, 2026 10:07
Comment thread docs/developers/document-releasing.md
Comment thread docs/developers/document-releasing.md Outdated
Comment thread docs/developers/document-releasing.md Outdated
Comment thread infra/document-releasing/hack/extract-sidebar.js
@zhzhuang-zju
Copy link
Copy Markdown
Contributor Author

Hi @RainbowMango, all comments have been addressed, please take a look~

Comment thread docs/developers/document-releasing.md Outdated
Comment on lines +30 to +33
File path: [website/infra/gen-resourcesdocs/config/current/toc.yaml](https://github.com/karmada-io/website/blob/main/infra/gen-resourcesdocs/config/current/toc.yaml).
Please refer to `website/infra/gen-resourcesdocs/README.md` for the file format and field descriptions.
Please refer to [swagger API docs](https://github.com/karmada-io/karmada/blob/master/api/openapi-spec/swagger.json) to get the latest Karmada API resources.
The Karmada API resource file only needs to be updated when Karmada introduces new API resources or API version changes.
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.

  1. Add a link to the file website/infra/gen-resourcesdocs/README.md.
  2. It's not practical to grab API changes from the swagger.json. In other words, it's hard for a contributor who does not know much about what we've done in the last release to figure out the API changes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, you're right. It's hard to make it clear how to get the latest Karmada API resources, so I chose to encapsulate it into a script dedicated to extracting toc.yaml from swagger.json.

@karmada-bot karmada-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 26, 2026
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
@karmada-bot karmada-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 26, 2026
Copy link
Copy Markdown
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label May 26, 2026
@karmada-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

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

The pull request process is described 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

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 26, 2026
@RainbowMango
Copy link
Copy Markdown
Member

/hold

@karmada-bot karmada-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 26, 2026
@karmada-bot karmada-bot merged commit 02947f7 into karmada-io:main May 26, 2026
7 checks passed
@RainbowMango
Copy link
Copy Markdown
Member

This was referenced May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants