Skip to content

Commit 6e5ce90

Browse files
committed
add learn page
1 parent 4f5cc25 commit 6e5ce90

File tree

4 files changed

+39
-33
lines changed

4 files changed

+39
-33
lines changed

config.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ title = 'Zig 语言中文社区'
88
weight = 10
99
url = "/"
1010
[[menu.main]]
11-
name = "日报"
11+
name = "学习"
1212
weight = 11
13+
url = "/learn"
14+
[[menu.main]]
15+
name = "日报"
16+
weight = 15
1317
url = "https://github.com/zigcc/forum/issues"
1418
[[menu.main]]
1519
name = "月刊"
@@ -28,10 +32,6 @@ title = 'Zig 语言中文社区'
2832
weight = 30
2933
url = "https://ask.ziglang.cc"
3034
# [[menu.main]]
31-
# name = "Tags"
32-
# weight = 3
33-
# url = "/tags"
34-
# [[menu.main]]
3535
# name = "关于"
3636
# weight = 4
3737
# url = "/about"

content/_index.org

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#+TITLE: Zig 语言中文社区
22
#+DATE: 2022-07-20T12:42:38+0800
3-
#+LASTMOD: 2024-08-03T17:00:24+0800
3+
#+LASTMOD: 2024-08-04T08:56:04+0800
44

55
{{< figure src="https://ziglang.cc/logo/zigcc-logo-2.svg" height="300px" >}}
66

@@ -39,31 +39,6 @@ Zig Chinese Community is dedicated to sharing and spreading the use of Zig langu
3939
让我们一起探索 Zig 的魅力,推动 Zig 在中文开发者社区的发展!
4040

4141
有任何疑问、建议,欢迎通过邮件与我们交流:[[mailto:hello@ziglang.cc][hello@ziglang.cc]]
42-
* 学习资料
43-
由于 Zig 目前还处于快速迭代,因此最权威的资料无疑是官方的 [[https://ziglang.org/documentation/master/][Zig Language Reference]],遇到语言的细节问题,基本都可以在这里找到答案。
44-
其次是社区的一些高质量教程,例如:
45-
- [[https://zig.guide/][Zig Guide]] :: 英文资料, [[https://github.com/Sobeston][Sobeston]] 用户编写
46-
- [[https://ziglang.cc/learning-zig/][学习 Zig]] :: 该系列教程最初由 Karl Seguin 编写,该教程行文流畅,讲述的脉络由浅入深,深入浅出,是入门 Zig 非常不错的选择
47-
- [[https://course.ziglang.cc][Zig 语言圣经]] :: 一份内容全面、深入浅出介绍 Zig 的教程
48-
- [[https://codeberg.org/ziglings/exercises/][ziglings/exercises]] :: Learn the Zig programming language by fixing tiny broken programs.
49-
- [[https://cookbook.ziglang.cc/][Zig Cookbook]] :: A collection of simple Zig programs that demonstrate good practices to accomplish common programming tasks
50-
- [[https://github.com/zigcc/awesome-zig][Awesome Zig]] :: A collection of some awesome public Zig programming language projects.
51-
52-
最后,推荐使用版本管理工具 [[/post/2023/10/14/zig-version-manager/][asdf]] 来安装 Zig,具体步骤:
53-
#+begin_src bash
54-
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
55-
cat <<'EOF' >> $HOME/.bashrc
56-
source "$HOME/.asdf/asdf.sh"
57-
source "$HOME/.asdf/completions/asdf.bash"
58-
EOF
59-
60-
asdf plugin-add zig https://github.com/zigcc/asdf-zig.git
61-
62-
# 安装最新版
63-
asdf install zig latest
64-
asdf global zig latest
65-
zig version
66-
#+end_src
6742
* 更新日志
6843
- 2024-07-14 :: 启用 Zig 社区微信 2 群
6944
- 2024-03-29 :: 使用自定义域名 ziglang.cc

content/learn.org

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#+TITLE: 学习 Zig
2+
#+DATE: 2024-08-04T08:51:07+0800
3+
#+LASTMOD: 2024-08-04T08:55:33+0800
4+
5+
* 资料
6+
由于 Zig 目前还处于快速迭代,因此最权威的资料无疑是官方的 [[https://ziglang.org/documentation/master/][Zig Language Reference]],遇到语言的细节问题,基本都可以在这里找到答案。
7+
其次是社区的一些高质量教程,例如:
8+
- [[https://zig.guide/][Zig Guide]] :: 英文资料, [[https://github.com/Sobeston][Sobeston]] 用户编写
9+
- [[https://gist.github.com/ityonemo/769532c2017ed9143f3571e5ac104e50][Zig in 30 minutes]] ::
10+
- [[https://ziglang.cc/learning-zig/][学习 Zig]] :: 该系列教程最初由 Karl Seguin 编写,该教程行文流畅,讲述的脉络由浅入深,深入浅出,是入门 Zig 非常不错的选择
11+
- [[https://course.ziglang.cc][Zig 语言圣经]] :: 一份内容全面、深入浅出介绍 Zig 的教程
12+
- [[https://codeberg.org/ziglings/exercises/][ziglings/exercises]] :: Learn the Zig programming language by fixing tiny broken programs.
13+
- [[https://cookbook.ziglang.cc/][Zig Cookbook]] :: A collection of simple Zig programs that demonstrate good practices to accomplish common programming tasks
14+
- [[https://github.com/zigcc/awesome-zig][Awesome Zig]] :: A collection of some awesome public Zig programming language projects.
15+
16+
* 版本管理
17+
推荐使用版本管理工具 [[/post/2023/10/14/zig-version-manager/][asdf]] 来安装 Zig,具体步骤:
18+
#+begin_src bash
19+
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
20+
cat <<'EOF' >> $HOME/.bashrc
21+
source "$HOME/.asdf/asdf.sh"
22+
source "$HOME/.asdf/completions/asdf.bash"
23+
EOF
24+
25+
asdf plugin-add zig https://github.com/zigcc/asdf-zig.git
26+
27+
# 安装最新版
28+
asdf install zig latest
29+
asdf global zig latest
30+
zig version
31+
#+end_src

content/news/_index.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#+TITLE: 社区新闻
22
#+DATE: 2024-08-03T16:43:51+0800
3-
#+LASTMOD: 2024-08-03T16:59:16+0800
3+
#+LASTMOD: 2024-08-03T18:48:27+0800
44
#+AUTHOR: Jiacai Liu
55

6-
我们会定期举行线上会议来畅聊 Zig,感兴趣的朋友可以通过下面日历查看,或订阅[[https://calendar.yandex.com/export/ics.xml?private_token=71fd8e02d7944f4e7ae44cc8a9b8877da9e9f2f1&tz_id=Asia/Hong_Kong][这个 ical]]。如果感兴趣,可以发邮件到 hello@ziglang.cc 索要线上会议地址。
6+
我们会定期举行线上会议来畅聊 Zig,感兴趣的朋友可以通过下面日历查看,或订阅[[https://calendar.yandex.com/export/ics.xml?private_token=71fd8e02d7944f4e7ae44cc8a9b8877da9e9f2f1&tz_id=Asia/Hong_Kong][这个 iCalendar]]。如果感兴趣,可以发邮件到 hello@ziglang.cc 索要线上会议地址。
77

88
#+BEGIN_EXPORT html
99
<iframe src="https://calendar.yandex.com/embed/week?&layer_ids=29400285&tz_id=Asia/Hong_Kong&layer_names=Zig 中文社区" width="800" height="450" frameborder="0" style="border: 1px solid #eee"></iframe>

0 commit comments

Comments
 (0)