|
1 | | -# d2x-project-template |
| 1 | +# D2MySTL |
2 | 2 |
|
3 | | -> d2x交互式教程项目模板 - `Book + Video + Code + X` |
| 3 | +> 从零实现一个迷你STL库 |
4 | 4 |
|
5 | 5 | [](https://github.com/d2learn/d2x) |
6 | 6 | [](https://github.com/d2learn/d2x) |
7 | 7 | [](LICENSE-CODE) |
8 | 8 |
|
9 | | -| [d2x工具](https://github.com/d2learn/d2x) - [论坛](https://forum.d2learn.org) | |
| 9 | +| [d2x工具](https://github.com/d2learn/d2x) - [文档](https://mcpp-community.github.io/d2mystl) - [论坛](https://mcpp.d2learn.org/forum) | |
10 | 10 | | --- | |
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 | 11 |
|
13 | | -该项目提供了一个, 可以被[d2x](https://github.com/d2learn/d2x)工具识别和加载的**交互式教程项目**的基础结构. 开发者和教程创作者, 可以基于这个模板来设计开发自己的交互式教程项目 |
| 12 | +## 快速开始 |
14 | 13 |
|
15 | | -## 功能特色 |
| 14 | +### 方式一: d2x自动代码检测 |
16 | 15 |
|
17 | | -- 提供了基础的 `Book + Video + Code + X` 结构 |
18 | | -- d2x工具可以直接识别和加载 |
19 | | -- 提供了项目依赖描述, 支持一键配置环境 |
| 16 | +<details> |
| 17 | + <summary>点击查看xlings安装命令</summary> |
20 | 18 |
|
21 | | -## 具体项目案例 |
| 19 | +--- |
| 20 | + |
| 21 | +#### Linux/MacOS |
| 22 | + |
| 23 | +```bash |
| 24 | +curl -fsSL https://d2learn.org/xlings-install.sh | bash |
| 25 | +``` |
| 26 | + |
| 27 | +#### Windows - PowerShell |
| 28 | + |
| 29 | +```bash |
| 30 | +irm https://d2learn.org/xlings-install.ps1.txt | iex |
| 31 | +``` |
| 32 | + |
| 33 | +> tips: xlings -> [details](https://xlings.d2learn.org) |
| 34 | +
|
| 35 | +--- |
| 36 | + |
| 37 | +</details> |
| 38 | + |
| 39 | +**获取项目** |
| 40 | + |
| 41 | +``` |
| 42 | +d2x install d2mystl |
| 43 | +``` |
| 44 | + |
| 45 | +**进入练习模式** |
| 46 | + |
| 47 | +``` |
| 48 | +d2x checker |
| 49 | +``` |
| 50 | + |
| 51 | +### 方式二: 动手运行验证 |
| 52 | + |
| 53 | +**获取项目** |
| 54 | + |
| 55 | +``` |
| 56 | +git clone https://github.com/mcpp-community/d2mystl.git |
| 57 | +``` |
| 58 | + |
| 59 | +**动手运行测试代码** |
| 60 | + |
| 61 | +``` |
| 62 | +xmake run chapter0_tests |
| 63 | +``` |
| 64 | + |
| 65 | +> 注: 测试名格式`chapter[x]_tests` |
| 66 | +
|
| 67 | +## 前置教程 |
| 68 | + |
| 69 | +如果感觉该教程上手有点难度, 可以先学习下面的教程了解现代C++基础和核心语法特性 |
22 | 70 |
|
23 | 71 | | 项目 | 简介 | 备注 | |
24 | 72 | | --- | --- | --- | |
25 | | -| [d2mcpp](https://github.com/mcpp-community/d2mcpp) | 现代C++核心特性入门教程 | | |
26 | | -| [d2ds](https://github.com/d2learn/d2ds) | 强调动手实践的数据结构学习项目 | | |
| 73 | +| [mcpp-start](https://github.com/mcpp-community/mcpp-start) | 现代C++启动! - `import std` | 入门-0 | |
| 74 | +| [d2mcpp](https://github.com/mcpp-community/d2mcpp) | 现代C++核心特性入门教程 | 入门-1 | |
27 | 75 |
|
28 | 76 | ## 其他 |
29 | 77 |
|
30 | 78 | - [d2x工具](https://github.com/d2learn/d2x) |
31 | | -- [论坛交流和反馈](https://forum.d2learn.org) |
32 | | -- `交流群`: 167535744 |
| 79 | +- [论坛交流和反馈](https://mcpp.d2learn.org/forum) |
| 80 | +- `交流群`: 1067245099 |
0 commit comments