Skip to content

Commit cf98dab

Browse files
committed
trivial fix
1 parent 0b67f72 commit cf98dab

File tree

5 files changed

+19
-53
lines changed

5 files changed

+19
-53
lines changed

README.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,9 @@
2222
> Zig Chinese Community is dedicated to sharing and spreading the use of
2323
> Zig language among Chinese users.
2424
25-
本网站使用 [zine](https://zine-ssg.io/) 进行构建。
26-
27-
参考 [quickstart](https://zine-ssg.io/quickstart/) 进行安装:
28-
29-
``` bash
30-
# aur
31-
yay -S zine
32-
33-
# zig build install
34-
git clone https://github.com/kristoff-it/zine.git
35-
cd zine
36-
zig build install --release=safe
37-
```
25+
本网站使用 [zine](https://zine-ssg.io/) 进行构建,可参考 [quickstart](https://zine-ssg.io/quickstart/) 进行安装,网站预览命令:
3826

3927
``` bash
40-
# run server
28+
# Serve the site
4129
zine
42-
```
30+
```

content/about.smd

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,47 +12,25 @@
1212
Reference](https://ziglang.org/documentation/master/),遇到语言的细节问题,基本都可以在这里找到答案。
1313
其次是社区的一些高质量教程,例如:
1414

15-
[Zig Guide](https://zig.guide/)
15+
[Zig Guide](https://zig.guide/)
1616
英文资料, [Sobeston](https://github.com/Sobeston) 用户编写
1717

18-
[Zig in 30 minutes](https://gist.github.com/ityonemo/769532c2017ed9143f3571e5ac104e50)
18+
[Zig in 30 minutes](https://gist.github.com/ityonemo/769532c2017ed9143f3571e5ac104e50)
1919

20-
[学习 Zig](https://ziglang.cc/learning-zig/)
20+
[学习 Zig](https://ziglang.cc/learning-zig/)
2121
该系列教程最初由 Karl Seguin
2222
编写,该教程行文流畅,讲述的脉络由浅入深,深入浅出,是入门 Zig
2323
非常不错的选择
2424

25-
[Zig 语言圣经](https://course.ziglang.cc)
25+
[Zig 语言圣经](https://course.ziglang.cc)
2626
一份内容全面、深入浅出介绍 Zig 的教程
2727

28-
[ziglings/exercises](https://codeberg.org/ziglings/exercises/)
28+
[ziglings/exercises](https://codeberg.org/ziglings/exercises/)
2929
Learn the Zig programming language by fixing tiny broken programs.
3030

31-
[Zig Cookbook](https://cookbook.ziglang.cc/)
31+
[Zig Cookbook](https://cookbook.ziglang.cc/)
3232
A collection of simple Zig programs that demonstrate good practices to
3333
accomplish common programming tasks
3434

35-
[Awesome Zig](https://github.com/zigcc/awesome-zig)
35+
[Awesome Zig](https://github.com/zigcc/awesome-zig)
3636
A collection of some awesome public Zig programming language projects.
37-
38-
# 版本管理
39-
40-
推荐使用版本管理工具
41-
[asdf](file:///post/2023/10/14/zig-version-manager/) 来安装
42-
Zig,具体步骤:
43-
44-
``` bash
45-
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
46-
cat <<'EOF' >> $HOME/.bashrc
47-
source "$HOME/.asdf/asdf.sh"
48-
source "$HOME/.asdf/completions/asdf.bash"
49-
EOF
50-
51-
asdf plugin-add zig https://github.com/zigcc/asdf-zig.git
52-
53-
# 安装最新版
54-
asdf install zig latest
55-
asdf global zig latest
56-
zig version
57-
```
58-

content/contributing.smd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
.author = "ZigCC",
55
.layout = "index.shtml",
66
.draft = false,
7-
---
7+
---
88

99
Zig 中文社区是一个开放的组织,我们致力于推广 Zig 在中文群体中的使用,有多种方式可以参与进来:
1010

1111
1. 供稿,分享自己使用 Zig 的心得,方式见下文
12-
2. 改进 zigcc 组织下的开源项目,这是 [open issues](https://github.com/search?q=state%3Aopen+org%3Azigcc++NOT+%E6%97%A5%E6%8A%A5&type=issues&ref=advsearch)
13-
3. 参与不定期的线上会议 TODO
12+
2. 改进 zigcc 组织下的开源项目,这是 [open issues](https://ask.ziglang.cc/github)
1413

1514
# [供稿方式]($section.id('contribute'))
1615

@@ -34,7 +33,7 @@ Zig 中文社区是一个开放的组织,我们致力于推广 Zig 在中文
3433

3534
# [本地预览]($section.id('本地预览'))
3635

37-
首先你得安装 `zine`,安装方法见 [Quick Start](https://zine-ssg.io/quickstart/),或者你也可以使用包管理器安装(aur, ...)
36+
首先你得安装 `zine`,安装方法见 [Quick Start](https://zine-ssg.io/quickstart/),之后就可以通过执行 `zine` 命令来预览你的文章。
3837

3938
```bash
4039
zine

content/learn/installing-zig.smd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ brew install asdf
2121

2222
asdf plugin add zig https://github.com/zigcc/asdf-zig.git
2323

24-
# [安装最新版]($section.id('install-latest-version'))
24+
# 安装最新稳定版
2525
asdf install zig latest
2626

2727
# 设置为全局版本

content/monthly/202406.smd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const map = std.StaticStringMap(T).initComptime(kvs_list);
3535

3636
老朋友 openmymind 的又一篇好文章:如何利用 Zig 的 Allocator
3737
来实现请求级别的内存分配。 Zig Allocator
38-
的最佳应用。[这里](file:///post/2024/06/16/leveraging-zig-allocator/)它的中文翻译。
38+
的最佳应用。[这里](/post/2024-06-16-leveraging-zig-allocator/)它的中文翻译。
3939

4040
``` zig
4141
const FallbackAllocator = struct {
@@ -98,6 +98,7 @@ fn run(worker: *Worker) void {
9898
worker.write(conn.res);
9999
}
100100
}
101+
```
101102

102103
# [On Zig vs Rust at work and the choice we made](https://ludwigabap.bearblog.dev/zig-vs-rust-at-work-the-choice-we-made/)
103104

@@ -158,11 +159,11 @@ News](https://news.ycombinator.com/item?id=40681862)
158159

159160
# [项目/工具]($section.id('projects-tools'))
160161

161-
[malcolmstill/zware](https://github.com/malcolmstill/zware)
162+
[malcolmstill/zware](https://github.com/malcolmstill/zware)
162163
Zig WebAssembly Runtime Engine
163164

164-
[Cloudef/zig-aio](https://github.com/Cloudef/zig-aio)
165-
io<sub>uring</sub> like asynchronous API and coroutine powered IO tasks
165+
[Cloudef/zig-aio](https://github.com/Cloudef/zig-aio)
166+
io_uring like asynchronous API and coroutine powered IO tasks
166167
for zig
167168

168169
# [Zig 语言更新](https://github.com/ziglang/zig/pulls?page=1&q=+is%3Aclosed+is%3Apr+closed%3A2024-06-01..2024-07-01)

0 commit comments

Comments
 (0)