Skip to content

Commit 82acf23

Browse files
committed
init mcpp start
1 parent 99ce988 commit 82acf23

8 files changed

Lines changed: 12 additions & 114 deletions

File tree

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Copyright (c) 2026-present d2learn, dev@d2learn.org
1+
Copyright (c) 2026 d2learn, dev@d2learn.org
2+
Copyright (c) 2026-present mcpp community
23

34
Apache License
45
Version 2.0, January 2004

README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# d2x-project-template
1+
# 现代C++启动! - `import std`
22

3-
> d2x交互式教程项目模板 - `Book + Video + Code + X`
3+
> 筹备中...
44
55
[![d2x](https://img.shields.io/badge/d2x-ok-green.svg)](https://github.com/d2learn/d2x)
66
[![online-ebook](https://img.shields.io/badge/online-ebook-orange.svg)](https://github.com/d2learn/d2x)
@@ -10,28 +10,6 @@
1010
| --- |
1111
| [文档](https://d2learn.github.io/d2x-project-template) -> [工具和环境配置](https://d2learn.github.io/d2x-project-template/chapter_1.html) -> [项目和新内容添加](https://d2learn.github.io/d2x-project-template/chapter_2.html) |
1212

13-
该项目提供了一个, 可以被[d2x](https://github.com/d2learn/d2x)工具识别和加载的**交互式教程项目**的基础结构. 开发者和教程创作者, 可以基于这个模板来设计开发自己的交互式教程项目
14-
15-
## 功能特色
16-
17-
- 提供了基础的 `Book + Video + Code + X` 结构
18-
- d2x工具可以直接识别和加载
19-
- 提供了项目依赖描述, 支持一键配置环境
20-
21-
## 快速开始
22-
23-
- 第一步: 点击 [新建教程模板](https://github.com/new?template_name=d2x-project-template&template_owner=d2learn) 按钮, 通过模板仓库创建新教程项目
24-
- 第二步: 克隆新仓库到本地 - `git clone git@github.com:your_name/your_repo_name.git`
25-
- 第三步:
26-
- [安装d2x工具](https://d2learn.github.io/d2x-project-template/chapter_1.html)
27-
- [认识项目结构并配置](https://d2learn.github.io/d2x-project-template/chapter_2.html)
28-
29-
## 具体项目案例
30-
31-
| 项目 | 简介 | 备注 |
32-
| --- | --- | --- |
33-
| [d2mcpp](https://github.com/mcpp-community/d2mcpp) | 现代C++核心特性入门教程 | |
34-
| [d2ds](https://github.com/d2learn/d2ds) | 强调动手实践的数据结构学习项目 | |
3513

3614
## 其他
3715

book/src/SUMMARY.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Summary
22

33
- [简介](./chapter_0.md)
4-
- [工具与环境配置](./chapter_1.md)
5-
- [项目和新内容添加](./chapter_2.md)
6-
- [等待你的扩展](./chapter_3.md)
4+
5+
## 参与开发
6+
7+
- [参与开发](./dev/chapter_0.md)

book/src/chapter_0.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# d2x-project-template
1+
# 现代C++启动! - `import std`
22

3-
> d2x交互式教程项目模板 - `Book + Video + Code + X`
3+
> 筹备中...
44
55
[![d2x](https://img.shields.io/badge/d2x-ok-green.svg)](https://github.com/d2learn/d2x)
66
[![online-ebook](https://img.shields.io/badge/online-ebook-orange.svg)](https://github.com/d2learn/d2x)
@@ -10,20 +10,6 @@
1010
| --- |
1111
| [文档](https://d2learn.github.io/d2x-project-template) -> [工具和环境配置](https://d2learn.github.io/d2x-project-template/chapter_1.html) -> [项目和新内容添加](https://d2learn.github.io/d2x-project-template/chapter_2.html) |
1212

13-
该项目提供了一个, 可以被[d2x](https://github.com/d2learn/d2x)工具识别和加载的**交互式教程项目**的基础结构. 开发者和教程创作者, 可以基于这个模板来设计开发自己的交互式教程项目
14-
15-
## 功能特色
16-
17-
- 提供了基础的 `Book + Video + Code + X` 结构
18-
- d2x工具可以直接识别和加载
19-
- 提供了项目依赖描述, 支持一键配置环境
20-
21-
## 具体项目案例
22-
23-
| 项目 | 简介 | 备注 |
24-
| --- | --- | --- |
25-
| [d2mcpp](https://github.com/mcpp-community/d2mcpp) | 现代C++核心特性入门教程 | |
26-
| [d2ds](https://github.com/d2learn/d2ds) | 强调动手实践的数据结构学习项目 | |
2713

2814
## 其他
2915

book/src/chapter_3.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

book/src/dev/chapter_0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 参与开发

dslings/hellocpp.cpp

Lines changed: 0 additions & 64 deletions
This file was deleted.

dslings/xmake.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
target("hellocpp")
2-
add_files("hellocpp.cpp")
1+
add_files("../d2x/mcpp/d2x.cppm")
32

43

5-
-- for mcpp
6-
74
target("hellomcpp")
8-
add_files("../d2x/mcpp/d2x.cppm")
95
add_files("hellomcpp.cpp")

0 commit comments

Comments
 (0)