Files
devvm/.github/workflows/docs.yml
T
w3cjandClaude Opus 5.5 18658a9ba6 docs: docs site skeleton with Hugo and Hextra
Hugo site in docs/ with the Hextra theme as a pinned Hugo module, a
home page and the contributing page, which takes over building, tools,
tests and stubs from the README and adds writing docs. Vale styles for
the writing rules, markdownlint, Vale and lychee --offline in mise run
lint, and a Pages workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-24 01:23:25 -06:00

49 lines
1.3 KiB
YAML

name: Docs
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Full history, for each page's last updated date.
fetch-depth: 0
- uses: jdx/mise-action@8418fedb1110381a0d3ba51a7a415d7c1b884550 # v5.2.2
with:
version: 2026.10.18
install_args: go hugo-extended
- id: pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- run: hugo -s docs --minify --baseURL "${PAGES_URL}/"
env:
PAGES_URL: ${{ steps.pages.outputs.base_url }}
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: docs/public
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1