Skip to content

Commit 7fdb58a

Browse files
authored
Init mcpp start (#1)
* init mcpp start * update * update * update
1 parent 99ce988 commit 7fdb58a

File tree

10 files changed

+22
-384
lines changed

10 files changed

+22
-384
lines changed

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: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,16 @@
1-
# d2x-project-template
1+
# 现代C++启动! - `import std` (筹备中...)
22

3-
> d2x交互式教程项目模板 - `Book + Video + Code + X`
3+
> 面向零基础的C++入门教程, 了解C++发展背景和生态以及基础语法
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)
77
[![License](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](LICENSE-CODE)
88

9-
| [d2x工具](https://github.com/d2learn/d2x) - [论坛](https://forum.d2learn.org) |
9+
| [文档](https://mcpp-community.github.io/mcpp-start) - [d2x工具](https://github.com/d2learn/d2x) - [论坛](https://mcpp.d2learn.org/forum) |
1010
| --- |
11-
| [文档](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) |
12-
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) | 强调动手实践的数据结构学习项目 | |
3511

3612
## 其他
3713

3814
- [d2x工具](https://github.com/d2learn/d2x)
39-
- [论坛交流和反馈](https://forum.d2learn.org)
40-
- `交流群`: 167535744
15+
- [论坛交流和反馈](https://mcpp.d2learn.org/forum)
16+
- `交流群`: 1067245099

book/src/SUMMARY.md

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

33
- [简介](./chapter_0.md)
4-
- [工具与环境配置](./chapter_1.md)
5-
- [项目和新内容添加](./chapter_2.md)
6-
- [等待你的扩展](./chapter_3.md)
4+
- [工具和环境配置](./chapter_1.md)
5+
6+
# 其他
7+
8+
- [参与开发](./other/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+
> 面向零基础的C++入门教程, 了解C++发展背景和生态以及基础语法
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_1.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 工具安装与环境配置
22

3-
本章节介绍如果安装d2x工具并创建模板项目, 以及基础的环境配置
3+
本章节介绍如果安装d2x工具并获取项目
44

55
## 一、安装d2x工具
66

@@ -39,31 +39,17 @@ xlings install d2x
3939

4040
TODO...
4141

42-
## 二、创建项目 & 测试
42+
## 二、获取项目
4343

44-
### 创建项目
45-
46-
**通过模块创建(推荐)**
47-
48-
点击 [新建教程模板](https://github.com/new?template_name=d2x-project-template&template_owner=d2learn) 按钮, 通过模板仓库创建新教程项目. 然后, 再把生成的仓库clone到本地
44+
### 安装项目
4945

5046
```bash
51-
git clone git@github.com:your_name/your_repo_name.git
52-
```
53-
54-
**本地创建**
55-
56-
通过`d2x new xxx`命令创建一个新项目
57-
47+
d2x install mcpp-start
5848
```
59-
d2x new d2hello
60-
```
61-
62-
命令运行后会生成一个叫`d2hello`的目录, 进入/打开这个目录就能看到项目的基础结构
6349

64-
### 测试
50+
### 用法
6551

66-
进入新创建项目的根目录, 运行命令进行测试完整性
52+
进入项目的根目录, 运行命令进行使用
6753

6854
**查看文档命令测试**
6955

book/src/chapter_2.md

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

book/src/chapter_3.md

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

book/src/other/chapter_0.md

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

0 commit comments

Comments
 (0)