Skip to content

Commit 1f77a4e

Browse files
authored
docs: 更新README,添加预览依赖和运行服务器的说明 (#46)
1 parent a26cf17 commit 1f77a4e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.org

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
Zig Chinese Community is dedicated to sharing and spreading the use of Zig language among Chinese users.
2525
#+end_quote
2626

27-
本网站使用 [[https://gohugo.io/][hugo]](extended 版本)与 [[https://www.docsy.dev/][docsy]] 主题进行构建, =hugo serve= 可进行本地预览。
27+
本网站使用 [[https://gohugo.io/][hugo]](extended 版本)与 [[https://www.docsy.dev/][docsy]] 主题进行构建。
28+
预览之前请确保已安装必要的 =postcss= 依赖
29+
#+begin_src bash
30+
# install depends
31+
npm i -D postcss postcss-cli autoprefixer
32+
#+end_src
33+
2834
#+begin_src bash
2935
# For macOS
3036
brew install hugo
@@ -36,3 +42,8 @@ sudo pacman -S hugo
3642
# Snap
3743
sudo snap install hugo
3844
#+end_src
45+
46+
#+begin_src bash
47+
# run server
48+
hugo server
49+
#+end_src

0 commit comments

Comments
 (0)