From ccaaa4d89dbd55879ca74e27f939e55f22c78809 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 10 Jan 2025 11:02:17 -0500 Subject: [PATCH] Update hugo to version 0.140.2, GH actions to latest (#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 --- .github/workflows/deploy.yml | 10 +++++----- config.toml | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 75ec34d..8b9e966 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -61,4 +61,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/config.toml b/config.toml index 5a995ec..cbf63af 100644 --- a/config.toml +++ b/config.toml @@ -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