Skip to content

Commit 86f7baa

Browse files
authored
update d2x version to 0.1.1 (#31)
* update d2x version to 0.1.1 mcpp-community/OpenOrg#1 Signed-off-by: sunrisepeak <speakshen@163.com> * update header file path * add version and update lang config docs --------- Signed-off-by: sunrisepeak <speakshen@163.com>
1 parent 632f0fd commit 86f7baa

File tree

103 files changed

+196
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+196
-103
lines changed

.d2x.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "0.1.1",
3+
"buildtools": "xmake d2x-buildtools",
4+
"lang": "en",
5+
"llm": {
6+
"api_key": "",
7+
"api_url": "https://api.deepseek.com/v1",
8+
"model": "deepseek-chat",
9+
"system_prompt": ""
10+
},
11+
"ui_backend": "tui"
12+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6767
</details>
6868

6969
```bash
70-
xlings install d2x:d2mcpp
70+
d2x install d2mcpp
7171
cd d2mcpp
7272
d2x checker
7373
```

README.zh.hant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6767
</details>
6868

6969
```bash
70-
xlings install d2x:d2mcpp
70+
d2x install d2mcpp
7171
cd d2mcpp
7272
d2x checker
7373
```

README.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6767
</details>
6868

6969
```bash
70-
xlings install d2x:d2mcpp
70+
d2x install d2mcpp
7171
cd d2mcpp
7272
d2x checker
7373
```

book/en/src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6363
</details>
6464

6565
```bash
66-
xlings install d2x:d2mcpp
66+
d2x install d2mcpp
6767
cd d2mcpp
6868
d2x checker
6969
```

book/en/src/base/chapter_1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Invoke-Expression (Invoke-Webrequest 'https://d2learn.org/xlings-install.ps1.txt
3737
> Download the project to current directory and automatically configure local environment
3838
3939
```bash
40-
xlings install d2x:d2mcpp
40+
d2x install d2mcpp
4141
```
4242

4343
### Local E-book
@@ -102,7 +102,7 @@ After entering the automated code practice environment using `xlings checker`, t
102102
// d2x checker hello-mcpp
103103
//
104104

105-
#include <d2x/common.hpp>
105+
#include <d2x/cpp/common.hpp>
106106

107107
// You can observe "real-time" changes in the console when modifying code
108108

@@ -153,7 +153,7 @@ Homepage: https://github.com/d2learn/xlings
153153

154154
### Configure Language
155155

156-
Edit the `lang` attribute in the project configuration file `config.xlings`. `zh` corresponds to Chinese, and `en` corresponds to English.
156+
Edit the `lang` attribute in the project configuration file `.d2x.json`. `zh` corresponds to Chinese, and `en` corresponds to English.
157157

158158
```lua
159159
},

book/src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6363
</details>
6464

6565
```bash
66-
xlings install d2x:d2mcpp
66+
d2x install d2mcpp
6767
cd d2mcpp
6868
d2x checker
6969
```

book/src/base/chapter_1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Invoke-Expression (Invoke-Webrequest 'https://d2learn.org/xlings-install.ps1.txt
3737
> 下载项目到当前目录并自动配置本地环境
3838
3939
```bash
40-
xlings install d2x:d2mcpp
40+
d2x install d2mcpp
4141
```
4242

4343
### 本地电子书
@@ -100,7 +100,7 @@ d2x update
100100
// d2x checker hello-mcpp
101101
//
102102

103-
#include <d2x/common.hpp>
103+
#include <d2x/cpp/common.hpp>
104104

105105
// 修改代码时可以观察到控制台"实时"的变化
106106

@@ -151,7 +151,7 @@ Homepage: https://github.com/d2learn/xlings
151151

152152
### 配置语言
153153

154-
编辑项目配置文件`config.xlings`中的`lang`属性, `zh`对应中文, `en`对应英文
154+
编辑项目配置文件`.d2x.json`中的`lang`属性, `zh`对应中文, `en`对应英文
155155

156156
```lua
157157
},

d2x/buildtools/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# d2x 支持的构建工具
2+
3+
通过对构建工具做最小化的接口规范来适配不同编程语言及其工具链
4+
5+
## 构建工具接口规范
6+
7+
```
8+
xxx d2x-buildtools [command] [target]
9+
10+
Commands:
11+
list List all targets
12+
build Build specified target
13+
run Run specified target
14+
```

d2x/buildtools/cmake/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO

0 commit comments

Comments
 (0)