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

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

FileContent
README.mdProject overview, quick start, core concepts
ARCHITECTURE.mdSystem design with Mermaid diagrams
API.mdFull public API reference
DEVELOPMENT.mdLocal setup, build flow, contribution guide
DEPLOYMENT.mdBuild output and npm publish workflow
CONTRIBUTING.mdPR 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

CopilotAI 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 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
FileDescription
README.mdNew public-facing README with badges, quick start, and links into ai-docs/.
README.zh-CN.mdChinese README translation mirroring the English README structure.
ai-docs/README.mdDeveloper-docs entry point with overview, quick start, and concept map.
ai-docs/ARCHITECTURE.mdArchitecture write-up with Mermaid diagrams and subsystem descriptions.
ai-docs/API.mdLarge API reference document for engine public surface area.
ai-docs/DEVELOPMENT.mdLocal dev/setup and contribution workflow guidance.
ai-docs/DEPLOYMENT.mdBuild artifact + publish workflow documentation.
ai-docs/CONTRIBUTING.mdContribution standards, PR checklist, and conventions.

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

Comment threadREADME.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 threadREADME.md
## License

scene.add(pointLight);
[MIT](./LICENSE)
Comment threadREADME.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 threadREADME.zh-CN.md

## 开源协议

[MIT](./LICENSE)

### TypeScript

- 使用 `strict: true` 模式(已在 `tsconfig.json` 配置)
Comment threadai-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 on lines +338 to +343
RenderObject <|-- Mesh
Mesh <|-- Node
Mesh <|-- SkyBox
Mesh <|-- InstanceMesh
Mesh <|-- Sprite
Mesh <|-- Points
Comment threadai-docs/API.md
Comment on lines +504 to +507
Color.fromHex("#ff8800")

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

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

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

@alanwhy