Skip to content

docs: 更新README,添加预览依赖和运行服务器的说明 #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading