Skip to content

Commit 9c18b27

Browse files
committed
resolve change requests
1 parent f95027f commit 9c18b27

File tree

5 files changed

+55
-43
lines changed

5 files changed

+55
-43
lines changed

.cache_ggshield

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Deploy the website to Github Pages
22

33
on:
4-
# Runs on pushes targeting the default branch
54
push:
6-
branches: ["zine"]
5+
branches: ["zine", "main"]
76

87
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
98
permissions:
@@ -26,7 +25,7 @@ jobs:
2625
steps:
2726
- uses: actions/checkout@v4
2827
with:
29-
fetch-depth: 0 # Change if you need git info
28+
fetch-depth: 0 # Change if you need git info
3029

3130
- name: Setup Zine
3231
uses: kristoff-it/setup-zine@v1
@@ -42,8 +41,9 @@ jobs:
4241
- name: Upload artifact
4342
uses: actions/upload-pages-artifact@v3
4443
with:
45-
path: 'public'
44+
path: "public"
4645

4746
- name: Deploy to GitHub Pages
4847
id: deployment
49-
uses: actions/deploy-pages@v4
48+
uses: actions/deploy-pages@v4
49+

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.lock
2+
.DS_Store
3+
/public
4+
/resources
5+
6+
# zig
7+
zig-cache/
8+
zig-out/
9+
10+
.cache_ggshield

content/about.smd

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,58 @@
11
---
2-
.title = "About",
3-
.date = @date("1990-01-01T00:00:00"),
2+
.date = "2024-08-04T08:51:07+0800",
3+
.title = "学习 Zig",
44
.author = "ZigCC",
55
.layout = "index.shtml",
66
.draft = false,
7-
---
7+
---
88

9-
# [About Zine]($section.id('About Zine'))
10-
Zine is an MIT-licensed project created by [Loris Cro](https://kristoff.it) and
11-
other contributors listed on the [official repository](https://github.com/kristoff-it/zine/contributors).
9+
# 资料
1210

13-
Zine is inspired by [Hugo](https://gohugo.io) but features an entirely custom set
14-
of authoring languages:
11+
由于 Zig 目前还处于快速迭代,因此最权威的资料无疑是官方的 [Zig Language
12+
Reference](https://ziglang.org/documentation/master/),遇到语言的细节问题,基本都可以在这里找到答案。
13+
其次是社区的一些高质量教程,例如:
1514

16-
- [Scripty](https://zine-ssg.io/docs/scripty/) is the small expression
17-
language that both SuperHTML and SuperMD share to express templating logic.
15+
[Zig Guide](https://zig.guide/)
16+
英文资料, [Sobeston](https://github.com/Sobeston) 用户编写
1817

19-
- [SuperHTML](https://zine-ssg.io/docs/superhtml/) is the HTML templating
20-
language used by Zine. Unlike most `{{curly braced}}` templating languages,
21-
SuperHTML uses valid HTML syntax to express the templating logic, adding only
22-
minor extensions to normal HTML.
23-
Thanks to this approach, it offers instant
24-
syntax checking and autoformatting via [a CLI tool](https://github.com/kristoff-it/superhtml) as well as Language Server support ([VScode Extension](https://marketplace.visualstudio.com/items?itemName=LorisCro.super)).
25-
26-
># [NOTE]($block)
27-
>The correct file extension for SuperHTML templates is `.shtml`.
18+
[Zig in 30 minutes](https://gist.github.com/ityonemo/769532c2017ed9143f3571e5ac104e50)
2819

29-
- [SuperMD](https://zine-ssg.io/docs/supermd/) is a superset of Markdown
30-
that, instead of relying on inline HTML, offers new constructs for expressing
31-
content embeds without pulling into your content needless layouting concerns.
32-
A CLI tool and language server for SuperMD is in the works.
33-
34-
># [NOTE]($block)
35-
>The correct file extension for SuperMD pages is `.smd`.
20+
[学习 Zig](https://ziglang.cc/learning-zig/)
21+
该系列教程最初由 Karl Seguin
22+
编写,该教程行文流畅,讲述的脉络由浅入深,深入浅出,是入门 Zig
23+
非常不错的选择
3624

37-
# [Zine is alpha software]($section.id('zine-is-alpha-software'))
25+
[Zig 语言圣经](https://course.ziglang.cc)
26+
一份内容全面、深入浅出介绍 Zig 的教程
3827

39-
Zine is not yet complete. The main functionality is present and you will be able
40-
to build even moderately complex static websites without issue.
28+
[ziglings/exercises](https://codeberg.org/ziglings/exercises/)
29+
Learn the Zig programming language by fixing tiny broken programs.
4130

42-
That said using Zine today does imply participating in the development process
43-
to some degree, which usually means inquiring about the development status of
44-
a feature you need, or reporting a bug.
31+
[Zig Cookbook](https://cookbook.ziglang.cc/)
32+
A collection of simple Zig programs that demonstrate good practices to
33+
accomplish common programming tasks
4534

35+
[Awesome Zig](https://github.com/zigcc/awesome-zig)
36+
A collection of some awesome public Zig programming language projects.
4637

47-
Here are some quicklinks related to Zine:
38+
# 版本管理
4839

49-
- Official Website: https://zine-ssg.io/
50-
- Source Code: https://github.com/kristoff-it/zine/
51-
- Discord: https://discord.com/invite/B73sGxF
52-
40+
推荐使用版本管理工具
41+
[asdf](file:///post/2023/10/14/zig-version-manager/) 来安装
42+
Zig,具体步骤:
5343

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
5450

51+
asdf plugin-add zig https://github.com/zigcc/asdf-zig.git
5552

53+
# 安装最新版
54+
asdf install zig latest
55+
asdf global zig latest
56+
zig version
57+
```
5658

main

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit e7911e6cc6408d2955bf3683a7b2c46577f6d780

0 commit comments

Comments
 (0)