Skip to content

Commit ccaaa4d

Browse files
authored
Update hugo to version 0.140.2, GH actions to latest (mastodon#1573)
* Move pagination config to own section (deprecation warning) * Update hugo to version 0.140.0 * Update actions/checkout to v4 * Update actions/configure-pages to v5 * Update actions/upload-pages-artifact to v3 * Update actions/deploy-pages to v4 * Update hugo to version 0.140.2
1 parent 4afe1ae commit ccaaa4d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/deploy.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,26 @@ jobs:
2828
build:
2929
runs-on: ubuntu-22.04
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
with:
3333
submodules: true # Fetch Hugo themes (true OR recursive)
3434
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
3535

3636
- name: Setup Pages
3737
id: pages
38-
uses: actions/configure-pages@v2
38+
uses: actions/configure-pages@v5
3939

4040
- name: Setup Hugo
4141
uses: peaceiris/actions-hugo@v2
4242
with:
43-
hugo-version: "0.130.0"
43+
hugo-version: "0.140.2"
4444
extended: true
4545

4646
- name: Build
4747
run: hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
4848

4949
- name: Upload artifact
50-
uses: actions/upload-pages-artifact@v1
50+
uses: actions/upload-pages-artifact@v3
5151
with:
5252
path: ./public
5353

@@ -61,4 +61,4 @@ jobs:
6161
steps:
6262
- name: Deploy to GitHub Pages
6363
id: deployment
64-
uses: actions/deploy-pages@v1
64+
uses: actions/deploy-pages@v4

config.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ title = "Mastodon documentation"
55
pygmentsCodeFences = true
66
pygmentsStyle = "github-dark"
77
metaDataFormat = "yaml"
8-
paginate = 100
98
enableGitInfo = true
109
disablePathToLower = true
1110

11+
[pagination]
12+
pagerSize = 100
13+
1214
[markup]
1315
[markup.tableOfContents]
1416
endLevel = 3

0 commit comments

Comments
 (0)