Skip to content

Commit

Permalink
Update hugo to version 0.140.2, GH actions to latest (#1573)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mjankowski authored Jan 10, 2025
1 parent 4afe1ae commit ccaaa4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Pages
id: pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v5

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.130.0"
hugo-version: "0.140.2"
extended: true

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./public

Expand All @@ -61,4 +61,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
4 changes: 3 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ title = "Mastodon documentation"
pygmentsCodeFences = true
pygmentsStyle = "github-dark"
metaDataFormat = "yaml"
paginate = 100
enableGitInfo = true
disablePathToLower = true

[pagination]
pagerSize = 100

[markup]
[markup.tableOfContents]
endLevel = 3
Expand Down

0 comments on commit ccaaa4d

Please sign in to comment.