Skip to content

Commit 3d11b78

Browse files
committed
docs: 获取与使用对齐 d2x 2026.07.24.1(status/原生模式双入口;d2x update 幽灵命令改为 git 说明;三语 README 快速开始)
1 parent 21f014e commit 3d11b78

5 files changed

Lines changed: 56 additions & 13 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,15 @@ irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_i
6767
</details>
6868

6969
```bash
70-
xlings install d2x -y
71-
d2x install d2mcpp
70+
xlings install d2x -y # exercise framework CLI
71+
d2x install d2mcpp # get the course, environment auto-configured
7272
cd d2mcpp
73-
d2x checker
73+
d2x checker # practice loop: edit -> save -> auto-check -> advance
74+
d2x status # progress overview
7475
```
7576

77+
> Exercises are real mcpp tests — `mcpp test -p src/cpp11` works too (no d2x involved).
78+
7679
**👉 [more details...](https://mcpp-community.github.io/d2mcpp/base/chapter_1.html)**
7780

7881
## Community

README.zh.hant.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,15 @@ irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_i
6767
</details>
6868

6969
```bash
70-
xlings install d2x -y
71-
d2x install d2mcpp
70+
xlings install d2x -y # 練習框架 CLI
71+
d2x install d2mcpp # 一鍵獲取課程,環境自動配置
7272
cd d2mcpp
73-
d2x checker
73+
d2x checker # 練習循環: 編輯 -> 保存 -> 自動檢測 -> 推進
74+
d2x status # 進度總覽
7475
```
7576

77+
> 練習就是真實的 mcpp 測試 —— 不經過 d2x,直接 `mcpp test -p src/cpp11` 同樣可用。
78+
7679
**👉 [更多細節...](https://mcpp-community.github.io/d2mcpp/base/chapter_1.html)**
7780

7881
## 社區

README.zh.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,15 @@ irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_i
6767
</details>
6868

6969
```bash
70-
xlings install d2x -y
71-
d2x install d2mcpp
70+
xlings install d2x -y # 练习框架 CLI
71+
d2x install d2mcpp # 一键获取课程,环境自动配置
7272
cd d2mcpp
73-
d2x checker
73+
d2x checker # 练习循环: 编辑 -> 保存 -> 自动检测 -> 推进
74+
d2x status # 进度总览
7475
```
7576

77+
> 练习就是真实的 mcpp 测试 —— 不经过 d2x,直接 `mcpp test -p src/cpp11` 同样可用。
78+
7679
**👉 [更多细节...](https://mcpp-community.github.io/d2mcpp/base/chapter_1.html)**
7780

7881
## 社区

book/en/src/base/chapter_1.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,29 @@ d2x checker [name]
6464

6565
> Note: Exercise names support fuzzy matching
6666
67+
### View Learning Progress
68+
69+
> Read-only progress overview grouped by chapter, without entering practice mode
70+
71+
```bash
72+
d2x status
73+
```
74+
75+
### Native Mode (optional)
76+
77+
> Every C++ standard directory is a real mcpp project and the exercises are its tests/ — you can practice with plain mcpp, no d2x involved:
78+
79+
```bash
80+
mcpp test -p src/en/cpp11 # progress table for the whole cpp11 section
81+
mcpp test -p src/en/cpp11 03-trailing # run only exercises matching the name
82+
```
83+
6784
### Sync Latest Practice Code
6885

69-
> Since the project is continuously updated, you can use the following command for automatic synchronization (if synchronization fails, you may need to manually update the project code using git)
86+
> The project is continuously updated; update via git (save/commit your modified exercises first):
7087
7188
```bash
72-
d2x update
89+
git pull
7390
```
7491

7592
## 2. Automated Detection Program Introduction

book/src/base/chapter_1.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,29 @@ d2x checker [name]
6464

6565
> 注: 练习名支持模糊匹配
6666
67+
### 查看学习进度
68+
69+
> 只读的进度总览,按章节聚合,不进入练习模式
70+
71+
```bash
72+
d2x status
73+
```
74+
75+
### 原生模式(可选)
76+
77+
> 每个 C++ 标准目录都是真实的 mcpp 工程,练习就是它的 tests/——不经过 d2x,直接用 mcpp 也能练:
78+
79+
```bash
80+
mcpp test -p src/cpp11 # 整个 cpp11 的进度表(哪题绿哪题红)
81+
mcpp test -p src/cpp11 03-trailing # 只跑名字匹配的练习
82+
```
83+
6784
### 同步最新的练习代码
6885

69-
> 由于项目处于持续更新阶段, 可以使用下面的命令进行自动同步(如果同步失败, 可能需要手动用git进行更新项目代码)
86+
> 项目处于持续更新阶段,更新使用 git(注意先保存/提交你已修改的练习):
7087
7188
```bash
72-
d2x update
89+
git pull
7390
```
7491

7592
## 2.自动化检测程序简介

0 commit comments

Comments
 (0)