Skip to content

Commit 02a1379

Browse files
committed
d2x's project template - base
1 parent 8780ce2 commit 02a1379

23 files changed

Lines changed: 444 additions & 0 deletions

.d2x.json

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

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Compiled Object files
5+
*.slo
6+
*.lo
7+
*.o
8+
*.obj
9+
10+
# Precompiled Headers
11+
*.gch
12+
*.pch
13+
14+
# Compiled Dynamic libraries
15+
*.so
16+
*.dylib
17+
*.dll
18+
19+
# Fortran module files
20+
*.mod
21+
*.smod
22+
23+
# Compiled Static libraries
24+
*.lai
25+
*.la
26+
*.a
27+
*.lib
28+
29+
# Executables
30+
*.exe
31+
*.out
32+
*.app
33+
34+
# Python
35+
__pycache__
36+
37+
# d2x project files
38+
.xlings
39+
.vscode
40+
.xmake
41+
.zed
42+
llm.config.xlings
43+
media
44+
build
45+
.cache/
46+
compile_commands.json
47+
dslings/compile_commands.json

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Copyright (c) 2026-present d2learn, dev@d2learn.org
2+
13
Apache License
24
Version 2.0, January 2004
35
http://www.apache.org/licenses/

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
# d2x-project-template
2+
23
d2x项目模板
4+
5+
## 目录结构
6+
7+
```cpp
8+
├── book // 项目文档/书籍
9+
├── d2x // d2x工具依赖
10+
│ ├── buildtools
11+
│ │ ├── cmake
12+
│ │ └── xmake
13+
| ├── cpp
14+
│ └── mcpp
15+
└── dslings // 项目练习代码
16+
```

book/.gitignore

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

book/book.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[book]
2+
authors = ["sunrisepeak"]
3+
language = "en"
4+
multilingual = false
5+
src = "src"
6+
title = "D2X Project Template | D2X项目模板"

book/src/SUMMARY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Summary
2+
3+
- [简介](./chapter_0.md)
4+
- [环境配置](./chapter_1.md)
5+
- [使用模板](./chapter_2.md)

book/src/chapter_0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 简介
2+

book/src/chapter_1.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 环境配置
2+

book/src/chapter_2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 使用模板

0 commit comments

Comments
 (0)