Skip to content

docs: improve README and add comprehensive developer documentation#39

Open
alanwhy wants to merge 3 commits into
mainfrom
docs/improve-readme-and-ai-docs-v2
Open

docs: improve README and add comprehensive developer documentation#39
alanwhy wants to merge 3 commits into
mainfrom
docs/improve-readme-and-ai-docs-v2

Conversation

@alanwhy
Copy link
Copy Markdown
Collaborator

@alanwhy alanwhy commented May 22, 2026

Summary

Improves the repository's public-facing documentation and adds a full developer documentation suite.

Changes

README.md — Rewritten in open-source community style

  • Add badges: npm version, license, WebGPU, TypeScript
  • Add Features, Requirements, Installation, Quick Start sections
  • Add Development commands, Documentation table, Examples table
  • Add Contributing / License sections
  • Add language switcher linking to README.zh-CN.md

README.zh-CN.md — New Chinese README

  • Full Chinese translation of README.md
  • Bidirectional language switcher (English | 中文)

ai-docs/ — New developer documentation suite

File Content
README.md Project overview, quick start, core concepts
ARCHITECTURE.md System design with Mermaid diagrams
API.md Full public API reference
DEVELOPMENT.md Local setup, build flow, contribution guide
DEPLOYMENT.md Build output and npm publish workflow
CONTRIBUTING.md PR conventions and code standards

Checklist

  • Documentation only — no source code changes
  • Follows Conventional Commits format
  • Chinese and English READMEs link to each other

wuhaoyuan added 3 commits May 22, 2026 16:09
- Add badges (npm version, license, WebGPU, TypeScript)
- Add Features, Requirements, Installation, Quick Start sections
- Add Development commands and Documentation table
- Add Examples table and Contributing/License sections
- Add language switcher linking to README.zh-CN.md
- Full Chinese translation of README.md
- Add bidirectional language switcher (English | 中文)
- README.md: project overview, quick start, core concepts
- ARCHITECTURE.md: system design with Mermaid diagrams
- API.md: full public API reference
- DEVELOPMENT.md: local setup, build flow, contribution guide
- DEPLOYMENT.md: build output and npm publish workflow
- CONTRIBUTING.md: PR conventions and code standards
Copy link
Copy Markdown

Copilot AI left a comment

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 revamps the repository’s documentation for both users and contributors by rewriting the main README, adding a Chinese README, and introducing an ai-docs/ developer documentation suite.

Changes:

  • Rewrites README.md into a fuller open-source style README (features, install, quick start, dev commands, docs/examples tables).
  • Adds README.zh-CN.md with a translated README and bidirectional language switching.
  • Adds ai-docs/ documentation set covering architecture, API reference, development, deployment, and contributing.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 19 comments.

Show a summary per file
File Description
README.md New public-facing README with badges, quick start, and links into ai-docs/.
README.zh-CN.md Chinese README translation mirroring the English README structure.
ai-docs/README.md Developer-docs entry point with overview, quick start, and concept map.
ai-docs/ARCHITECTURE.md Architecture write-up with Mermaid diagrams and subsystem descriptions.
ai-docs/API.md Large API reference document for engine public surface area.
ai-docs/DEVELOPMENT.md Local dev/setup and contribution workflow guidance.
ai-docs/DEPLOYMENT.md Build artifact + publish workflow documentation.
ai-docs/CONTRIBUTING.md Contribution standards, PR checklist, and conventions.

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

Comment thread README.md
<img src="https://img.shields.io/github/license/hpugis/GEngine" alt="license" />
</a>
<img src="https://img.shields.io/badge/WebGPU-required-blue" alt="WebGPU required" />
<img src="https://img.shields.io/badge/TypeScript-5+-3178c6?logo=typescript&logoColor=white" alt="TypeScript" />
Comment thread README.md
## License

scene.add(pointLight);
[MIT](./LICENSE)
Comment thread README.zh-CN.md
<img src="https://img.shields.io/github/license/hpugis/GEngine" alt="开源协议" />
</a>
<img src="https://img.shields.io/badge/WebGPU-required-blue" alt="需要 WebGPU" />
<img src="https://img.shields.io/badge/TypeScript-5+-3178c6?logo=typescript&logoColor=white" alt="TypeScript" />
Comment thread README.zh-CN.md

## 开源协议

[MIT](./LICENSE)
Comment thread ai-docs/DEVELOPMENT.md

### TypeScript

- 使用 `strict: true` 模式(已在 `tsconfig.json` 配置)
Comment thread ai-docs/API.md
Comment on lines +540 to +551
### CubeTextureLoader

**文件**:[src/loader/CubeTextureLoader.ts](../src/loader/CubeTextureLoader.ts)

```typescript
const loader = new CubeTextureLoader();
const cubeTexture = await loader.loadCubeTexture([
"px.jpg", "nx.jpg", // +X, -X
"py.jpg", "ny.jpg", // +Y, -Y
"pz.jpg", "nz.jpg" // +Z, -Z
]);
```
Comment thread ai-docs/ARCHITECTURE.md
Comment on lines +338 to +343
RenderObject <|-- Mesh
Mesh <|-- Node
Mesh <|-- SkyBox
Mesh <|-- InstanceMesh
Mesh <|-- Sprite
Mesh <|-- Points
Comment thread ai-docs/API.md
Comment on lines +504 to +507
Color.fromHex("#ff8800")

// 输出
c.toHex()
Comment thread ai-docs/API.md
Comment on lines +511 to +517
### Euler

```typescript
const e = new Euler(x, y, z, order);
// order: "XYZ" | "YXZ" | "ZXY" 等
```

Comment thread ai-docs/API.md
| `camera` | `PerspectiveCamera` | 当前主相机 |
| `context` | `Context` | WebGPU 上下文 |
| `frameState` | `FrameState` | 当前帧状态 |
| `background` | `Color \| Texture` | 背景颜色或天空盒纹理 |
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