Skip to content

Commit

Permalink
fix pages ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Jan 25, 2025
1 parent 65402c1 commit 908a7eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
submodules: recursive
- uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"
hugo-version: "0.140.2"
extended: true
- name: Setup Pages
id: pages
Expand Down
13 changes: 8 additions & 5 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ Zig Chinese Community is dedicated to sharing and spreading the use of Zig langu
#+end_quote

本网站使用 [[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
Expand All @@ -47,3 +42,11 @@ sudo snap install hugo
# run server
hugo server
#+end_src

如果启动 server 时报错,可以安装以下依赖:
#+begin_src bash
# install depends
npm i -D postcss postcss-cli autoprefixer
#+end_src

参考:https://www.docsy.dev/docs/get-started/docsy-as-module/installation-prerequisites/#install-postcss

0 comments on commit 908a7eb

Please sign in to comment.