Skip to content

docs(sdk): 更新文档规范并添加VitePress配置#250

Merged
GeWuYou merged 2 commits into
mainfrom
docs/sdk-update-documentation
Apr 18, 2026
Merged

docs(sdk): 更新文档规范并添加VitePress配置#250
GeWuYou merged 2 commits into
mainfrom
docs/sdk-update-documentation

Conversation

@GeWuYou

@GeWuYou GeWuYou commented Apr 18, 2026

Copy link
Copy Markdown
Owner
  • 调整文档真实性原则,以源码和测试为首要证据源
  • 新增模块README要求,规定所有用户包必须有说明文档
  • 更新仓库文档规范,要求根README与文档站点分类一致
  • 添加VitePress配置文件,支持中文搜索和泛型转义
  • 创建入门指南文档,说明GFramework模块组成和接入路径
  • 添加快速开始教程,演示Core模块最小使用示例
  • 为Core模块添加详细README文档
  • 为Core.Abstractions添加契约层说明文档
  • 为Core.SourceGenerators添加源码生成器文档
  • 为Game模块添加运行时层详细说明文档

Summary by CodeRabbit

  • Documentation
    • 重组并扩充文档体系:明确运行时/契约/源生成器定位,新增多份模块 README(Core、Cqrs、Game 及若干 SourceGenerators/Abstractions)
    • 设定“Documentation Source Of Truth”与模块 README 要求,规范文档采纳优先级与内容字段
    • 重写根 README、入门/快速开始为 Core-first 最小路径,更新 docs 导航与 VitePress 配置

- 调整文档真实性原则,以源码和测试为首要证据源
- 新增模块README要求,规定所有用户包必须有说明文档
- 更新仓库文档规范,要求根README与文档站点分类一致
- 添加VitePress配置文件,支持中文搜索和泛型转义
- 创建入门指南文档,说明GFramework模块组成和接入路径
- 添加快速开始教程,演示Core模块最小使用示例
- 为Core模块添加详细README文档
- 为Core.Abstractions添加契约层说明文档
- 为Core.SourceGenerators添加源码生成器文档
- 为Game模块添加运行时层详细说明文档
@coderabbitai

coderabbitai Bot commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: be90d9e3-b666-4c41-8cd8-57eed92806f7

📥 Commits

Reviewing files that changed from the base of the PR and between ebdc231 and 8ddf1b6.

📒 Files selected for processing (1)
  • docs/zh-CN/abstractions/index.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/zh-CN/abstractions/index.md
📜 Recent review details
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Code Quality & Security
  • GitHub Check: Analyze (C#)

📝 Walkthrough

Walkthrough

本次变更大规模重构与补充仓库文档:新增与重写多个模块级 README、调整根 README 与文档站导航、引入“Documentation Source Of Truth”规则与模块 README 要求,并重写入门/快速开始为以模块选型和最小接入路径为主的内容。变更均为文档内容更新,无代码 API 更改。

Changes

Cohort / File(s) Summary
贡献与文档治理
AGENTS.md, README.md
新增“Documentation Source Of Truth”、模块 README 要求和仓库文档导航约束,调整贡献流程和任务追踪在文档中的位置与顺序,强调代码/tests/packaging metadata 为权威来源。
根目录与文档站配置
README.md, docs/.vitepress/config.mts
重构根 README 章节与模块表、最小安装组合与贡献流程;在 VitePress 配置中新增“抽象接口”导航入口。
Core 系列文档
GFramework.Core/README.md, GFramework.Core.Abstractions/README.md, GFramework.Core.SourceGenerators/README.md
重新定位为 runtime/contract/source-generator,添加子系统地图、包关系和最小接入路径;SourceGenerators README 改为模块概述并移除低级实现示例。
CQRS 系列文档
GFramework.Cqrs/README.md, GFramework.Cqrs.Abstractions/README.md, GFramework.Cqrs.SourceGenerators/README.md
新增三份 README:Abstractions(协议层)、SourceGenerators(生成 handler registry)、Runtime(默认实现与注册/调度行为)。
Game 系列文档
GFramework.Game/README.md, GFramework.Game.Abstractions/README.md, GFramework.Game.SourceGenerators/README.md
新增/扩充 Game 模块的运行时与抽象层 README,添加子系统地图、最小接入路径、schema->代码生成器使用约定。
文档站入门与示例
docs/zh-CN/abstractions/index.md, docs/zh-CN/getting-started/index.md, docs/zh-CN/getting-started/quick-start.md
新增抽象接口导航页,重写入门指南为模块选型导向并删除原有五层架构教学,快速开始简化为 Core-only 的计数器示例(示例类型/方法名变更)。

Sequence Diagram(s)

(该变更为文档重组/新增,未引入新的多组件运行时交互或可视化流程,故省略序列图。)

预计审查工作量

🎯 3 (中等) | ⏱️ ~25 分钟

可能相关的 PR


总览

本次变更对 GFramework 仓库的文档进行了全面重组,重新定义了各模块的定位(运行时 vs 抽象层 vs 源生成器),补充了包关系地图、子系统地图和最小接入路径,更新了文档站导航,并调整了入门指南的内容结构。

变更清单

内聚体 / 文件 摘要
贡献与文档指导
AGENTS.md
扩展文档权威来源规则,新增模块 README 强制要求和仓库文档导航约束,重新调整任务追踪位置。
根目录 README 与文档站配置
README.md, docs/.vitepress/config.mts
重构根 README 的分节和模块表,新增"抽象接口"菜单项,更新包选择、最小安装、贡献流程的说明结构。
核心模块文档
GFramework.Core.Abstractions/README.md, GFramework.Core.SourceGenerators/README.md, GFramework.Core/README.md
重新定位为协议层、编译期工具链、运行时,各添加子系统地图、包关系和最小接入路径。
CQRS 模块文档
GFramework.Cqrs.Abstractions/README.md, GFramework.Cqrs.SourceGenerators/README.md, GFramework.Cqrs/README.md
新增三个 README 文档,分别说明消息/处理器协议层、编译期源生成器、运行时实现的定位和集成方式。
游戏模块文档
GFramework.Game.Abstractions/README.md, GFramework.Game.SourceGenerators/README.md, GFramework.Game/README.md
扩展抽象层定位,新增源生成器文档,重构运行时包的内容结构,补充子系统地图和四种场景的最小接入路径。
文档站入门内容
docs/zh-CN/abstractions/index.md, docs/zh-CN/getting-started/index.md, docs/zh-CN/getting-started/quick-start.md
新增抽象接口导航页面,重写入门指南为模块选型驱动(删除五层架构讲解),将快速开始简化为 Core-only 的计数器示例。

预计审查工作量

🎯 3 (中等) | ⏱️ ~25 分钟

可能相关的 PR

  • PR #186: 新增/修改了 SchemaConfigGenerator 的实现与测试,直接关联 Game SourceGenerators 文档中描述的生成器行为。
  • PR #194: 修改了 VitePress 配置(站点导航/站点设置),与本次对 docs/.vitepress/config.mts 的更改相关。
  • PR #218: 调整贡献流程与指南,可能与本次根 README 的“贡献”部分改写存在重叠。
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR标题准确概括了主要变更:更新文档规范并添加VitePress配置,这反映了PR中大量文档内容重写、模块README创建和配置文件更新的核心工作。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/sdk-update-documentation

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/zh-CN/abstractions/index.md`:
- Line 20: The sentence in docs/zh-CN/abstractions/index.md containing
“真正的安装和采用路径” is awkward; update that phrase to “实际安装与接入路径” so the full line
reads: “抽象层页面会解释接口分组与职责;实际安装与接入路径,仍应以运行时模块 README 与 `getting-started` 为主。”.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 275f688e-a8d7-4895-8bf7-294ab8472980

📥 Commits

Reviewing files that changed from the base of the PR and between b4459bf and ebdc231.

📒 Files selected for processing (15)
  • AGENTS.md
  • GFramework.Core.Abstractions/README.md
  • GFramework.Core.SourceGenerators/README.md
  • GFramework.Core/README.md
  • GFramework.Cqrs.Abstractions/README.md
  • GFramework.Cqrs.SourceGenerators/README.md
  • GFramework.Cqrs/README.md
  • GFramework.Game.Abstractions/README.md
  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Game/README.md
  • README.md
  • docs/.vitepress/config.mts
  • docs/zh-CN/abstractions/index.md
  • docs/zh-CN/getting-started/index.md
  • docs/zh-CN/getting-started/quick-start.md
📜 Review details
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Build and Test
  • GitHub Check: Code Quality & Security
  • GitHub Check: Analyze (C#)
🧰 Additional context used
📓 Path-based instructions (5)
**/README.md

📄 CodeRabbit inference engine (AGENTS.md)

A module README MUST describe the module's purpose, relationship to adjacent packages, major subdirectories, minimum adoption path, and corresponding docs/zh-CN/ entry points

Files:

  • GFramework.Core.Abstractions/README.md
  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Game/README.md
  • GFramework.Game.Abstractions/README.md
  • GFramework.Cqrs.SourceGenerators/README.md
  • GFramework.Core/README.md
  • GFramework.Cqrs.Abstractions/README.md
  • GFramework.Core.SourceGenerators/README.md
  • GFramework.Cqrs/README.md
  • README.md
**/*.md

📄 CodeRabbit inference engine (AGENTS.md)

Update the relevant README.md or docs/ page when behavior, setup steps, architecture guidance, or user-facing examples change

Files:

  • GFramework.Core.Abstractions/README.md
  • docs/zh-CN/abstractions/index.md
  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Game/README.md
  • GFramework.Game.Abstractions/README.md
  • AGENTS.md
  • GFramework.Cqrs.SourceGenerators/README.md
  • GFramework.Core/README.md
  • GFramework.Cqrs.Abstractions/README.md
  • GFramework.Core.SourceGenerators/README.md
  • docs/zh-CN/getting-started/index.md
  • GFramework.Cqrs/README.md
  • README.md
  • docs/zh-CN/getting-started/quick-start.md
docs/**/*.md

📄 CodeRabbit inference engine (CLAUDE.md)

Documentation should be organized with Chinese content in docs/zh-CN/ and structured to include getting started, module-specific capabilities (Core, Game, Godot, ECS), source generator usage, tutorials, best practices, and troubleshooting

Files:

  • docs/zh-CN/abstractions/index.md
  • docs/zh-CN/getting-started/index.md
  • docs/zh-CN/getting-started/quick-start.md
docs/zh-CN/**/*.md

📄 CodeRabbit inference engine (AGENTS.md)

When a feature is added, removed, renamed, or substantially refactored, contributors MUST update or create the corresponding user-facing integration documentation in docs/zh-CN/ in the same change

Files:

  • docs/zh-CN/abstractions/index.md
  • docs/zh-CN/getting-started/index.md
  • docs/zh-CN/getting-started/quick-start.md
README.md

📄 CodeRabbit inference engine (AGENTS.md)

The repository root README.md MUST mirror the current top-level documentation taxonomy used by the docs site and prefer linking to section landing pages instead of deep-linking

Files:

  • README.md
🧠 Learnings (27)
📓 Common learnings
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-04-17T11:35:08.735Z
Learning: Applies to docs/**/*.md : Documentation should be organized with Chinese content in docs/zh-CN/ and structured to include getting started, module-specific capabilities (Core, Game, Godot, ECS), source generator usage, tutorials, best practices, and troubleshooting
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to docs/zh-CN/**/* : When a feature is added, removed, renamed, or substantially refactored, contributors MUST update or create the corresponding user-facing integration documentation in `docs/zh-CN/` in the same change
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to docs/zh-CN/**/* : For integration-oriented features such as the AI-First config system, documentation MUST cover: project directory layout and file conventions, required project or package wiring, minimal working usage example, and migration or compatibility notes when behavior changes
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: Before choosing runtimes or CLI tools, read `@.ai/environment/tools.ai.yaml` and use project-relevant tools listed there instead of assuming every installed system tool is fair game
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: When working in WSL against this repository's Windows-backed worktree, prefer Windows Git from WSL (for example `git.exe`) instead of the Linux `git` binary
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: Use subagents only when the task is complex, the context is likely to grow too large, or the work can be split into independent parallel subtasks, and the main agent MUST identify the critical path first
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: Every non-trivial feature, bug fix, or behavior change MUST include tests or an explicit justification for why a test is not practical
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: Public API changes must be covered by unit or integration tests
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: When a public API defines multiple contract branches, tests MUST cover the meaningful variants, including null, empty, default, and filtered inputs when those branches change behavior
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: Regression fixes should include a test that fails before the fix and passes after it
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: Keep tests focused on observable behavior, not implementation trivia
Learnt from: CR
Repo: GeWuYou/GFramework

Timestamp: 2026-04-18T02:09:04.458Z
Learning: Every user-facing package or module directory that contains a `*.csproj` intended for direct consumption MUST have a sibling `README.md` using the canonical filename
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to docs/zh-CN/**/* : When a feature is added, removed, renamed, or substantially refactored, contributors MUST update or create the corresponding user-facing integration documentation in `docs/zh-CN/` in the same change

Applied to files:

  • docs/.vitepress/config.mts
  • GFramework.Core.Abstractions/README.md
  • docs/zh-CN/abstractions/index.md
  • GFramework.Game/README.md
  • GFramework.Game.Abstractions/README.md
  • AGENTS.md
  • GFramework.Core/README.md
  • GFramework.Cqrs.Abstractions/README.md
  • docs/zh-CN/getting-started/index.md
  • GFramework.Cqrs/README.md
  • README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to docs/zh-CN/**/* : For integration-oriented features such as the AI-First config system, documentation MUST cover: project directory layout and file conventions, required project or package wiring, minimal working usage example, and migration or compatibility notes when behavior changes

Applied to files:

  • docs/.vitepress/config.mts
  • GFramework.Core.Abstractions/README.md
  • docs/zh-CN/abstractions/index.md
  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Game/README.md
  • GFramework.Game.Abstractions/README.md
  • AGENTS.md
  • GFramework.Core/README.md
  • GFramework.Cqrs.Abstractions/README.md
  • GFramework.Core.SourceGenerators/README.md
  • docs/zh-CN/getting-started/index.md
  • GFramework.Cqrs/README.md
  • README.md
  • docs/zh-CN/getting-started/quick-start.md
📚 Learning: 2026-04-17T11:35:08.735Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-04-17T11:35:08.735Z
Learning: Applies to docs/**/*.md : Documentation should be organized with Chinese content in docs/zh-CN/ and structured to include getting started, module-specific capabilities (Core, Game, Godot, ECS), source generator usage, tutorials, best practices, and troubleshooting

Applied to files:

  • docs/.vitepress/config.mts
  • docs/zh-CN/abstractions/index.md
  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Game/README.md
  • AGENTS.md
  • GFramework.Core/README.md
  • docs/zh-CN/getting-started/index.md
  • README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to **/*.cs : If a framework abstraction changes meaning or intended usage, update the explanatory comments in code as part of the same change

Applied to files:

  • GFramework.Core.Abstractions/README.md
  • GFramework.Game.Abstractions/README.md
  • AGENTS.md
  • GFramework.Core/README.md
  • GFramework.Cqrs.Abstractions/README.md
  • GFramework.Core.SourceGenerators/README.md
📚 Learning: 2026-04-17T11:35:08.735Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-04-17T11:35:08.735Z
Learning: Applies to **/*Abstractions/**/*.cs : Abstractions projects should only contain interfaces and contract definitions without any runtime implementation logic

Applied to files:

  • GFramework.Core.Abstractions/README.md
  • docs/zh-CN/abstractions/index.md
📚 Learning: 2026-04-16T11:55:23.931Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.931Z
Learning: Applies to **/*.cs : Core framework components such as Architecture, Module, System, Context, Registry, Service Module, and Lifecycle types MUST include high-level explanations of responsibilities, lifecycle, interaction with other components, why the abstraction exists, and when to use it instead of alternatives

Applied to files:

  • GFramework.Core.Abstractions/README.md
  • AGENTS.md
  • GFramework.Core/README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to docs/zh-CN/**/* : Do not rely on "the code is self-explanatory" for framework features that consumers need to adopt; write the adoption path down so future users do not need to rediscover it from source

Applied to files:

  • GFramework.Core.Abstractions/README.md
  • docs/zh-CN/abstractions/index.md
  • GFramework.Game/README.md
  • AGENTS.md
  • GFramework.Core/README.md
  • docs/zh-CN/getting-started/index.md
  • README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to **/*.SourceGenerators.cs : When generator behavior changes intentionally, update snapshots together with the implementation

Applied to files:

  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Cqrs.SourceGenerators/README.md
  • GFramework.Core.SourceGenerators/README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to **/*.SourceGenerators.Tests.cs : Source generator changes MUST be covered by generator tests

Applied to files:

  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Cqrs.SourceGenerators/README.md
  • GFramework.Core.SourceGenerators/README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to **/*.SourceGenerators.cs : Keep source generators deterministic and free of hidden environment or network dependencies

Applied to files:

  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Cqrs.SourceGenerators/README.md
  • GFramework.Core.SourceGenerators/README.md
📚 Learning: 2026-04-16T11:55:23.931Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.931Z
Learning: Applies to **/*.cs : Generated logic and generator pipelines MUST explain what is generated, why it is generated, the semantic assumptions the generator relies on, and any diagnostics or fallback behavior

Applied to files:

  • GFramework.Game.SourceGenerators/README.md
  • GFramework.Cqrs.SourceGenerators/README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to {README.md,docs/**/*} : Update the relevant `README.md` or `docs/` page when behavior, setup steps, architecture guidance, or user-facing examples change

Applied to files:

  • AGENTS.md
  • docs/zh-CN/getting-started/index.md
  • README.md
📚 Learning: 2026-04-17T11:35:08.735Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-04-17T11:35:08.735Z
Learning: All coding rules must be followed strictly as defined in AGENTS.md

Applied to files:

  • AGENTS.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to {README.md,docs/**/*} : If an existing documentation page no longer reflects the current implementation, fixing the code without fixing the documentation is considered incomplete work

Applied to files:

  • AGENTS.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to **/*.cs : Any change to public API, lifecycle semantics, module behavior, or extension points MUST update the related XML docs

Applied to files:

  • AGENTS.md
  • GFramework.Core/README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to local-plan/**/* : When a task spans multiple commits or is likely to exceed a single agent context window, update both the recovery document and the trace at each meaningful milestone before pausing or handing work off

Applied to files:

  • AGENTS.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to {README.md,docs/**/*} : Keep code samples, package names, and command examples aligned with the current repository state in documentation

Applied to files:

  • AGENTS.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to local-plan/todos/**/* : For any multi-step refactor, migration, or cross-module task, contributors MUST create or adopt a dedicated recovery document under `local-plan/todos/` before making substantive code changes

Applied to files:

  • AGENTS.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to local-plan/todos/**/* : When working from a tracked implementation plan, contributors MUST update the corresponding tracking document under `local-plan/todos/` in the same change

Applied to files:

  • AGENTS.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to {README.md,docs/**/*} : Prefer documenting behavior and design intent, not only API surface in documentation

Applied to files:

  • AGENTS.md
📚 Learning: 2026-04-17T11:35:08.735Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-04-17T11:35:08.735Z
Learning: Applies to **/*{Startup,Init,Register,Setup,Configure}*.cs : CQRS handler registration should use generated products from CqrsHandlerRegistryGenerator at runtime, falling back to reflection scanning when generation cannot cover cases; explicitly register handlers from non-default assemblies using RegisterCqrsHandlersFromAssembly(...) or RegisterCqrsHandlersFromAssemblies(...)

Applied to files:

  • GFramework.Cqrs.SourceGenerators/README.md
📚 Learning: 2026-04-17T11:35:08.735Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-04-17T11:35:08.735Z
Learning: Applies to **/Cqrs/**/*.cs : Use CQRS (Command Query Responsibility Segregation) pattern with the Cqrs naming entry point instead of the historical Mediator alias

Applied to files:

  • GFramework.Cqrs/README.md
📚 Learning: 2026-04-06T12:45:47.739Z
Learnt from: GeWuYou
Repo: GeWuYou/GFramework PR: 190
File: GFramework.Game/Config/GameConfigBootstrap.cs:1-3
Timestamp: 2026-04-06T12:45:47.739Z
Learning: In the GFramework repository (GeWuYou/GFramework), even though `ImplicitUsings` is disabled in the `.csproj` files, the project uses a manual `GlobalUsings.cs` file with `global using` directives to provide common System namespaces (e.g., System, System.Threading, System.Threading.Tasks) project-wide. Do not flag missing System-level `using` imports in C# files within this repository, as they are covered by GlobalUsings.cs.

Applied to files:

  • README.md
📚 Learning: 2026-04-16T13:25:59.124Z
Learnt from: GeWuYou
Repo: GeWuYou/GFramework PR: 235
File: GFramework.SourceGenerators.Tests/Rule/ContextAwareGeneratorSnapshotTests.cs:1-3
Timestamp: 2026-04-16T13:25:59.124Z
Learning: In the GeWuYou/GFramework repository, the test project `GFramework.SourceGenerators.Tests` provides `global using NUnit.Framework;` via its `GlobalUsings.cs`. Do not flag missing `using NUnit.Framework;` directives in test files within this project, as the global using already covers it. The project-wide GlobalUsings.cs pattern is used broadly to supply common namespaces (including NUnit, System.IO, etc.) without per-file imports.

Applied to files:

  • README.md
📚 Learning: 2026-04-16T11:55:23.932Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.932Z
Learning: Applies to **/*.cs : Use the namespace pattern `GFramework.{Module}.{Feature}` with PascalCase segments

Applied to files:

  • README.md
📚 Learning: 2026-04-16T11:55:23.931Z
Learnt from: CR
Repo: GeWuYou/GFramework PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-04-16T11:55:23.931Z
Learning: Applies to **/*.csproj : Follow the repository defaults with `ImplicitUsings` disabled, `Nullable` enabled, `GenerateDocumentationFile` enabled for shipped libraries, and `LangVersion` generally `preview` in the main libraries and abstractions

Applied to files:

  • README.md
🪛 LanguageTool
docs/zh-CN/abstractions/index.md

[uncategorized] ~20-~20: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:真正"地"安装
Context: ...*.Abstractions 包。 - 抽象层页面会解释接口分组与职责;真正的安装和采用路径,仍应以运行时模块 README 与 `getting-start...

(wb4)

GFramework.Game/README.md

[uncategorized] ~30-~30: 您的意思是“"不"齐”?
Context: ...ramework.Game`,生成时代码由 source generators 补齐。 - 引擎适配包或项目内适配层 - 本包提供的是“引擎无关”的核心逻辑和...

(BU)


[uncategorized] ~144-~144: 您的意思是“由"于"”吗?
Context: ...ISceneFactoryISceneRoot - 提供栈式场景路由与转换处理管道 -UiRouterBase - 依赖IUiFacto...

(YU7_YU8)


[uncategorized] ~284-~284: 您的意思是“"不"齐”?
Context: .../ UI 路由 这里的最小前提不是“直接 new 一个 router”,而是先补齐运行时依赖: - ISceneFactory / `IUiFactory...

(BU)

GFramework.Game.Abstractions/README.md

[uncategorized] ~213-~213: 动词的修饰一般为‘形容词(副词)+地+动词’。您的意思是否是:真正"地"实现
Context: ...EnterParam -IUiPageEnterParam- 真正的实现和装配则放在: -GFramework.Game -GFr...

(wb4)

GFramework.Core/README.md

[grammar] ~66-~66: Ensure spelling is correct
Context: ...继承 Architecture 2. 在 OnInitialize() 中注册模型、系统、工具或模块 3. 通过 architecture.Context 或 `Context...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

GFramework.Cqrs/README.md

[uncategorized] ~143-~143: 您的意思是“"不"齐”?
Context: ...ore` 架构初始化路径,这些步骤通常由框架自动完成;裸容器或测试环境则需要显式补齐 runtime 与注册入口。 ## 适用边界 - 这个包是默认实现,不是...

(BU)

README.md

[style] ~5-~5: Using many exclamation marks might seem excessive (in this case: 4 exclamation marks for a text that’s 2513 characters long)
Context: ...t.org/packages/GeWuYou.GFramework.Core) NuGet Meta Godot .NET [![License](https://img.shields.io/badge/L...

(EN_EXCESSIVE_EXCLAMATION)


[grammar] ~25-~25: Ensure spelling is correct
Context: ...README | | GFramework.Cqrs.Abstractions | CQRS 消息、处理器、pipeline 行为...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)


[grammar] ~25-~25: Ensure spelling is correct
Context: ...| CQRS 消息、处理器、pipeline 行为等契约 | [README](GFramework.Cqrs.Abstractions/README.md) | |GFramework...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)


[grammar] ~32-~32: Ensure spelling is correct
Context: ...rk.Game.SourceGenerators/README.md) | | GFramework.Cqrs.SourceGenerators | CQRS handler regist...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)


[grammar] ~32-~32: Ensure spelling is correct
Context: ...s| CQRS handler registry 生成器 | [README](GFramework.Cqrs.SourceGenerators/README.md) | |GFrame...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🔇 Additional comments (14)
docs/.vitepress/config.mts (1)

119-119: 导航新增“抽象接口”入口合理且与侧边栏一致。

该改动与同文件内 /zh-CN/abstractions/ 侧边栏分组对齐,信息架构一致。

docs/zh-CN/getting-started/index.md (1)

1-107: 入门页重构方向正确,接入路径信息完整。

问题导向结构清晰,模块选型、最小落地路径和阅读顺序都可直接指导新用户接入。

Based on learnings: “Do not rely on "the code is self-explanatory" for framework features that consumers need to adopt; write the adoption path down so future users do not need to rediscover it from source”.

GFramework.Cqrs.Abstractions/README.md (1)

1-101: README 结构完整,契约层边界描述清晰。

模块定位、相邻包关系、子系统地图、最小接入路径和文档入口都覆盖到了,便于消费者快速判断是否仅依赖 abstractions。

As per coding guidelines: “A module README MUST describe the module's purpose, relationship to adjacent packages, major subdirectories, minimum adoption path, and corresponding docs/zh-CN/ entry points”.

GFramework.Core.Abstractions/README.md (1)

3-51: 抽象层 README 重构到位,信息密度和可执行性都很好。

契约地图和采用建议很实用,能显著降低“只需契约 vs 需要运行时实现”的选型成本。

As per coding guidelines: “A module README MUST describe the module's purpose, relationship to adjacent packages, major subdirectories, minimum adoption path, and corresponding docs/zh-CN/ entry points”.

GFramework.Game.Abstractions/README.md (1)

3-240: 内容组织清晰,契约包边界表达准确。

“最小接入路径 + 何时升级到 runtime 包”的分层说明非常实用,能直接指导依赖策略。

As per coding guidelines: “A module README MUST describe the module's purpose, relationship to adjacent packages, major subdirectories, minimum adoption path, and corresponding docs/zh-CN/ entry points”.

GFramework.Core/README.md (1)

3-84: Core 模块 README 的“职责边界 + 接入顺序”表达很清楚。

对“负责什么/不负责什么”的拆分很有效,能减少错误期望并加速新项目接入。

GFramework.Game/README.md (1)

124-124: 该链接的文件名大小写已准确。 仓库中实际文件为 ReadMe.md(混合大小写),README 中的链接 ./Storage/ReadMe.md 已正确指向该文件。无需更改。

			> Likely an incorrect or invalid review comment.
AGENTS.md (1)

240-310: 文档治理规则补充清晰且可执行。

这部分把“证据优先级、模块 README 必备项、根 README 与站点分类对齐、任务追踪要求”写得足够具体,能直接指导后续文档变更落地。

GFramework.Game.SourceGenerators/README.md (1)

1-70: 模块 README 结构完整,符合新规范。

模块定位、包关系、目录与输入约定、最小接入路径和文档入口都已覆盖,信息密度和可执行性都不错。

GFramework.Core.SourceGenerators/README.md (1)

1-95: 重构后的 README 定位更统一。

从“能力碎片说明”转成“模块级入口文档”后,可读性和检索性都更好,且接入路径与文档入口都给到了。

GFramework.Cqrs.SourceGenerators/README.md (1)

1-67: CQRS 生成器 README 信息准确且落地。

“生成优先 + 回退反射”的语义、最小接入方式和运行时接法都写清楚了,作为模块入口文档是合格的。

README.md (1)

12-52: 根 README 与文档站点导航已成功对齐。

栏目命名、入口分层和贡献说明现在是一致的,能明显降低“仓库入口”和“文档站入口”之间的认知跳转成本。

Also applies to: 132-137

docs/zh-CN/getting-started/quick-start.md (1)

3-5: 快速开始页改得很实用。

“最小依赖 → 最小架构 → 最小命令执行链路”的路径清晰,且明确提示了后续迁移到 CQRS 的阅读入口。

Also applies to: 7-105

GFramework.Cqrs/README.md (1)

5-153: CQRS 模块 README 覆盖面完整。

定位、子系统地图、运行时行为与注册语义都说明到位,能支持“先接入再深挖”的使用路径。

Comment thread docs/zh-CN/abstractions/index.md Outdated
@coderabbitai

coderabbitai Bot commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 1 unresolved review comment.

Files modified:

  • docs/zh-CN/abstractions/index.md

Commit: 8ddf1b6eefbd15a1b4aa70d523e31dbddb46b5f6

The changes have been pushed to the docs/sdk-update-documentation branch.

Time taken: 1m 39s

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
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.

1 participant