Skip to content

Commit f95027f

Browse files
committed
solve conflict
2 parents ff26ff1 + ebda407 commit f95027f

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
serve:
3+
zine
4+
5+
lint:
6+
npx @lint-md/cli **/*
7+
8+
format:
9+
npx @lint-md/cli --fix **/*
10+
11+
12+
EXCLUDE = --exclude "*webp" --exclude "*svg" --exclude "*gif"
13+
IMG_PATH = ./static/images
14+
webp:
15+
fd -t f $(EXCLUDE) --full-path $(IMG_PATH) --exec convert {} {.}.webp \;
16+
fd -t f $(EXCLUDE) --full-path $(IMG_PATH) --exec rm {} \;

content/learn/index.smd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
# [其他学习资料]($section.id('other-learning-resources'))
5353

54-
由于 Zig 目前还处于快速迭代,因此最权威的资料无疑是官方的 [Zig Language Reference](https://ziglang.org/documentation/master/),遇到语言的细节问题,基本都可以在这里找到答案。 其次是社区的一些高质量教程,例如:
54+
由于 Zig 目前还处于快速迭代,因此最权威的资料无疑是官方的 [Zig Language Reference](https://ziglang.org/documentation/master/),遇到语言的细节问题,基本都可以在这里找到答案。其次是社区的一些高质量教程,例如:
5555

5656
- **[Zig 日报](https://github.com/zigcc/forum/issues):**
5757
- **[Zig 语言圣经](https://course.ziglang.cc):** 一份内容全面、深入浅出介绍 Zig 的教程

content/learn/installing-zig.smd

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@ Zig 官网的[下载页面](https://ziglang.org/download/)中包含常见平台
1414

1515
现在,你可以运行 `zig zen` 和 `zig version` 来测试是否安装正确。
1616

17-
> 译者注:建议读者使用版本管理工具来安装 Zig,具体可参考:[《Zig 多版本管理》]({{< ref "/post/2023-10-14-zig-version-manager.org" >}})。
17+
> 译者注:建议读者使用版本管理工具来安装 Zig。以下是使用 [asdf](https://asdf-vm.com/) 的安装方法:
1818

1919
```bash
20-
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
21-
cat <<'EOF' >> $HOME/.bashrc
22-
source "$HOME/.asdf/asdf.sh"
23-
source "$HOME/.asdf/completions/asdf.bash"
24-
EOF
20+
brew install asdf
2521

26-
asdf plugin-add zig https://github.com/zigcc/asdf-zig.git
22+
asdf plugin add zig https://github.com/zigcc/asdf-zig.git
2723

2824
# [安装最新版]($section.id('install-latest-version'))
2925
asdf install zig latest
26+
27+
# 设置为全局版本
28+
# asdf 0.16 之前
3029
asdf global zig latest
30+
31+
# asdf 0.16 之后
32+
asdf set --home zig latest
33+
34+
# 验证安装
3135
zig version
3236
```

0 commit comments

Comments
 (0)