Skip to content

Commit 5042d87

Browse files
committed
update readme & docs
1 parent 62d64a0 commit 5042d87

5 files changed

Lines changed: 65 additions & 2 deletions

File tree

.xlings/config-xlings.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
xname = 'mcpp-community'
2+
3+
xim = {
4+
node = "22.17.1",
5+
pnpm = "9.15.0",
6+
xppcmds = {
7+
"pnpm install --dir homepage",
8+
}
9+
}

.xlings/xmake.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
includes("config-xlings.lua")
2+
3+
if d2x and d2x.checker then
4+
add_includedirs("../" .. d2x.checker.name)
5+
includes("../" .. d2x.checker.name)
6+
end
7+
8+
includes("/home/xlings/.xlings/core/xmake.lua")

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,39 @@
44

55
## 本地运行
66

7+
<details>
8+
<summary>click to view xlings installation command</summary>
9+
10+
---
11+
12+
#### Linux/MacOS
13+
14+
```bash
15+
curl -fsSL https://d2learn.org/xlings-install.sh | bash
16+
```
17+
18+
#### Windows - PowerShell
19+
20+
```bash
21+
irm https://d2learn.org/xlings-install.ps1.txt | iex
22+
```
23+
24+
> tips: xlings -> [details](https://xlings.d2learn.org)
25+
26+
---
27+
28+
</details>
29+
30+
**安装依赖**
31+
32+
```bash
33+
xlings install
34+
```
35+
36+
**运行**
37+
738
```bash
839
cd homepage
9-
pnpm install
1040
pnpm run dev
1141
```
1242

config.xlings

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
xname = 'mcpp-community'
2+
3+
xim = {
4+
node = "22.17.1",
5+
pnpm = "9.15.0",
6+
xppcmds = {
7+
"pnpm install --dir homepage",
8+
}
9+
}

homepage/docs/base/intro.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ mcpp是一个现代C++爱好者社区
1212

1313
- 技术&文化传播 - 现代C++影响力、模块化特性、教程
1414
- [mcpplibs - 现代C++模块化库集合](https://github.com/mcpplibs)
15-
- [社区文化 - 爱好者聚集地、技术交流、社区活动]( https://mcpp.d2learn.org/forum)
15+
- [社区文化 - 爱好者聚集地、技术交流、社区活动]( https://mcpp.d2learn.org/forum)
16+
17+
## 相关链接
18+
19+
- `社区官网`: [https://mcpp.d2learn.org](https://mcpp.d2learn.org)
20+
- `mcpp开源主页`: [https://github.com/mcpp-community](https://github.com/mcpp-community)
21+
- `mcpp论坛`: [https://mcpp.d2learn.org/forum](https://mcpp.d2learn.org/forum)
22+
- `mcpp社区群组`: [1067245099](https://qm.qq.com/q/KUgYhe0qQY)

0 commit comments

Comments
 (0)