mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
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
This commit is contained in:
parent
4afe1ae06f
commit
ccaaa4d89d
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@ -28,26 +28,26 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
id: pages
|
id: pages
|
||||||
uses: actions/configure-pages@v2
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
hugo-version: "0.130.0"
|
hugo-version: "0.140.2"
|
||||||
extended: true
|
extended: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
|
run: hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./public
|
path: ./public
|
||||||
|
|
||||||
@ -61,4 +61,4 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v1
|
uses: actions/deploy-pages@v4
|
||||||
|
@ -5,10 +5,12 @@ title = "Mastodon documentation"
|
|||||||
pygmentsCodeFences = true
|
pygmentsCodeFences = true
|
||||||
pygmentsStyle = "github-dark"
|
pygmentsStyle = "github-dark"
|
||||||
metaDataFormat = "yaml"
|
metaDataFormat = "yaml"
|
||||||
paginate = 100
|
|
||||||
enableGitInfo = true
|
enableGitInfo = true
|
||||||
disablePathToLower = true
|
disablePathToLower = true
|
||||||
|
|
||||||
|
[pagination]
|
||||||
|
pagerSize = 100
|
||||||
|
|
||||||
[markup]
|
[markup]
|
||||||
[markup.tableOfContents]
|
[markup.tableOfContents]
|
||||||
endLevel = 3
|
endLevel = 3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user