Skip to content

Commit

Permalink
docs: 更新README,添加预览依赖和运行服务器的说明 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
xihale authored Jan 19, 2025
1 parent a26cf17 commit 1f77a4e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
Zig Chinese Community is dedicated to sharing and spreading the use of Zig language among Chinese users.
#+end_quote

本网站使用 [[https://gohugo.io/][hugo]](extended 版本)与 [[https://www.docsy.dev/][docsy]] 主题进行构建, =hugo serve= 可进行本地预览。
本网站使用 [[https://gohugo.io/][hugo]](extended 版本)与 [[https://www.docsy.dev/][docsy]] 主题进行构建。
预览之前请确保已安装必要的 =postcss= 依赖
#+begin_src bash
# install depends
npm i -D postcss postcss-cli autoprefixer
#+end_src

#+begin_src bash
# For macOS
brew install hugo
Expand All @@ -36,3 +42,8 @@ sudo pacman -S hugo
# Snap
sudo snap install hugo
#+end_src

#+begin_src bash
# run server
hugo server
#+end_src

0 comments on commit 1f77a4e

Please sign in to comment.