Skip to content

Commit

Permalink
Docs: 更新部署文档说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Nov 12, 2024
1 parent f9bda8f commit b846799
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
8 changes: 7 additions & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ For a complete quick start, see this [page](https://fixit.lruihao.cn/documentati
### Prerequisites

- [Go](https://go.dev/dl/)
- [Hugo](https://gohugo.io/installation/): >= 0.132.0 (extended version)
- [Hugo](https://gohugo.io/installation/) (extended version)

### Use Template

Expand Down Expand Up @@ -61,6 +61,12 @@ When your site is ready to deploy, run the following command:
hugo
```

### Deploy to GitHub Pages

1. Head to Setting => Actions => General => Workflow permissions => Check "Read and write permissions".
2. Manually run Workflow: Actions => Hugo build and deploy => Click Run workflow button.
3. GitHub Pages settings: Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save.

### Update Theme

Afterwards you can upgrade the theme with the following command:
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
### 准备

- [Go](https://go.dev/dl/)
- [Hugo](https://gohugo.io/installation/): >= 0.132.0 (extended version)
- [Hugo](https://gohugo.io/installation/) (extended version)

### 使用模板

Expand Down Expand Up @@ -61,6 +61,12 @@ hugo server -e production
hugo
```

### 部署到 GitHub Pages

1. 转到 Setting => Actions => General => Workflow permissions => 选中 "Read and write permissions"
2. 手动运行 Workflow: Actions => Hugo build and deploy => 点击 Run workflow 按钮。
3. GitHub Pages 设置:Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save。

### 更新主题

之后,你可以使用以下命令升级主题:
Expand Down
2 changes: 1 addition & 1 deletion assets/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseUrl": ".",
"paths": {
"*": [
"../../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-fixit/[email protected].11/assets/*"
"../../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-fixit/[email protected].14/assets/*"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,9 @@ disableThemeInject = false
# FixIt 0.2.18 | NEW whether to enable instant.page
instantPage = false
# FixIt 0.3.0 | NEW whether to enable collection list at the sidebar
collectionList = false
collectionList = true
# FixIt 0.3.0 | NEW whether to enable collection navigation at the end of the post
collectionNavigation = false
collectionNavigation = true

# FixIt 0.2.15 | NEW Repost config
[page.repost]
Expand Down
8 changes: 7 additions & 1 deletion content/posts/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For a complete quick start, see this [page](https://fixit.lruihao.cn/documentati
### Prerequisites

- [Go](https://go.dev/dl/)
- [Hugo](https://gohugo.io/installation/): >= 0.132.0 (extended version)
- [Hugo](https://gohugo.io/installation/) (extended version)

### Use this Template

Expand Down Expand Up @@ -56,6 +56,12 @@ When your site is ready to deploy, run the following command:
hugo
```

### Deploy to GitHub Pages

1. Head to Setting => Actions => General => Workflow permissions => Check "Read and write permissions".
2. Manually run Workflow: Actions => Hugo build and deploy => Click Run workflow button.
3. GitHub Pages settings: Setting => Pages => Source: Deploy from a branch => Branch: `gh-pages` => Save.

### Update Theme

Afterwards you can upgrade the theme with the following command:
Expand Down

0 comments on commit b846799

Please sign in to comment.