Skip to content

Draft: GeneralUpdate.Bowl component documentation#58

Merged
JusterZhu merged 1 commit into
mainfrom
docs/issue-48-bowl-draft
Jun 3, 2026
Merged

Draft: GeneralUpdate.Bowl component documentation#58
JusterZhu merged 1 commit into
mainfrom
docs/issue-48-bowl-draft

Conversation

@JusterZhu

Copy link
Copy Markdown
Collaborator

Refs #48

Summary

  • Rewrite GeneralUpdate.Bowl docs around the current BowlContext + LaunchAsync API
  • Explain post-upgrade lifecycle placement, crash detection, backup restore, UpgradeFail marking, dump/report/trace output, and OnCrash callback usage
  • Document Windows/Linux/macOS strategy differences and migrate Chinese, zh-Hans, and English docs together

Validation

  • git --no-pager diff --check
  • npm run build -- --no-minify

Refs #48

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JusterZhu JusterZhu force-pushed the docs/issue-48-bowl-draft branch from c651e1a to ce1c144 Compare June 3, 2026 07:53
@JusterZhu JusterZhu marked this pull request as ready for review June 3, 2026 07:53
Copilot AI review requested due to automatic review settings June 3, 2026 07:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR rewrites the GeneralUpdate.Bowl documentation (Chinese + English) to match the current post-upgrade “startup guard” behavior and the BowlContext + LaunchAsync API, including crash capture outputs, rollback behavior, callbacks, tracing, and platform differences.

Changes:

  • Replaced legacy “component overview / core features” docs with an updated lifecycle-first explanation and practical setup flow.
  • Added detailed sections for crash detection + recovery pipeline, output artifacts, OnCrash callback, and trace logging control.
  • Synced the same content structure across website/docs (zh) and i18n (en / zh-Hans).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
website/docs/doc/GeneralUpdate.Bowl.md Rewritten zh docs for Bowl around BowlContext / LaunchAsync, adding lifecycle + recovery + outputs + callbacks + platform notes.
website/i18n/en/docusaurus-plugin-content-docs/current/doc/GeneralUpdate.Bowl.md English version of the rewritten Bowl docs with the same structure and updated examples.
website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/doc/GeneralUpdate.Bowl.md zh-Hans version of the rewritten Bowl docs aligned with the updated API and behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +280 to +284
旧示例中的 `GeneralUpdate.Bowl.Strategys.MonitorParameter` 已标记为过时,推荐迁移到 `BowlContext` 和异步入口:

| 产品 | 版本 |
| --------------- | ----------------- |
| .NET | 5, 6, 7, 8, 9, 10 |
| .NET Framework | 4.6.1 |
| .NET Standard | 2.0 |
| .NET Core | 2.0 |
| ASP.NET | Any |
```csharp
var oldParameter = new GeneralUpdate.Bowl.Strategys.MonitorParameter
{
- **示例代码**:[查看 GitHub 示例](https://github.com/GeneralLibrary/GeneralUpdate-Samples/tree/main/src/Bowl)
- **视频教程**:[观看 Bilibili 教程](https://www.bilibili.com/video/BV1c8iyYZE7P)
- **主仓库**:[GeneralUpdate 项目](https://github.com/GeneralLibrary/GeneralUpdate)
- **示例代码**:[GeneralUpdate-Samples / Bowl](https://github.com/GeneralLibrary/GeneralUpdate-Samples/tree/main/src/Bowl)
Comment on lines +280 to +284
The old `GeneralUpdate.Bowl.Strategys.MonitorParameter` type is obsolete. Prefer `BowlContext` and the async entry point:

| Product | Version |
| --------------- | ----------------- |
| .NET | 5, 6, 7, 8, 9, 10 |
| .NET Framework | 4.6.1 |
| .NET Standard | 2.0 |
| .NET Core | 2.0 |
| ASP.NET | Any |
```csharp
var oldParameter = new GeneralUpdate.Bowl.Strategys.MonitorParameter
{
- **Example Code**: [View GitHub Examples](https://github.com/GeneralLibrary/GeneralUpdate-Samples/tree/main/src/Bowl)
- **Video Tutorial**: [Watch Bilibili Tutorial](https://www.bilibili.com/video/BV1c8iyYZE7P)
- **Main Repository**: [GeneralUpdate Project](https://github.com/GeneralLibrary/GeneralUpdate)
- **Samples:** [GeneralUpdate-Samples / Bowl](https://github.com/GeneralLibrary/GeneralUpdate-Samples/tree/main/src/Bowl)
Comment on lines +280 to +284
旧示例中的 `GeneralUpdate.Bowl.Strategys.MonitorParameter` 已标记为过时,推荐迁移到 `BowlContext` 和异步入口:

| 产品 | 版本 |
| --------------- | ----------------- |
| .NET | 5, 6, 7, 8, 9, 10 |
| .NET Framework | 4.6.1 |
| .NET Standard | 2.0 |
| .NET Core | 2.0 |
| ASP.NET | Any |
```csharp
var oldParameter = new GeneralUpdate.Bowl.Strategys.MonitorParameter
{
- **示例代码**:[查看 GitHub 示例](https://github.com/GeneralLibrary/GeneralUpdate-Samples/tree/main/src/Bowl)
- **视频教程**:[观看 Bilibili 教程](https://www.bilibili.com/video/BV1c8iyYZE7P)
- **主仓库**:[GeneralUpdate 项目](https://github.com/GeneralLibrary/GeneralUpdate)
- **示例代码**:[GeneralUpdate-Samples / Bowl](https://github.com/GeneralLibrary/GeneralUpdate-Samples/tree/main/src/Bowl)
@JusterZhu JusterZhu merged commit 44d4091 into main Jun 3, 2026
2 checks passed
@JusterZhu JusterZhu deleted the docs/issue-48-bowl-draft branch June 3, 2026 16:47
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.

2 participants