summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2024-06-28 22:08:01 -0400
committerGitHub <noreply@github.com>2024-06-29 02:08:01 +0000
commitbdf4f8c7d802c6f8ce4bbe6418d583a1449fe493 (patch)
tree0098cad0706a2bf2e090c21f302fb5d79ce7fbd9 /.github
parentc9643cad84f95ac0086f8caa0b868364741aa6e6 (diff)
docs(fix): Fix broken links, add CI to check (#2156)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docs.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 7527eb40..89d376b7 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -21,3 +21,36 @@ jobs:
echo "Function docs are out of date. Please run 'make gen-func-docs' locally and commit the changes."
exit 1
fi
+ muffet:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Hugo setup
+ uses: peaceiris/actions-hugo@v3.0.0
+ with:
+ # keep this in sync with netlify.toml
+ hugo-version: '0.128.0'
+ - uses: actions/checkout@v4
+ - name: Install muffet
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ gh release --repo raviqqe/muffet download -p muffet_linux_amd64.tar.gz
+ tar xvf muffet_linux_amd64.tar.gz muffet
+ sudo mv muffet /usr/local/bin
+ - name: Serve the site and check links
+ run: |
+ set -ex
+
+ cd docs
+ hugo --renderToMemory
+ hugo serve --watch=false --renderToMemory &
+ sleep 2
+
+ muffet http://localhost:1313 \
+ -r8 --max-connections-per-host=4 --buffer-size=8192 \
+ --exclude="https://github\.com.*" \
+ --exclude="https://docs\.aws.*" \
+ --exclude="https://linux.die\.net.*" \
+ --exclude="https://jqplay\.org.*" \
+
+ kill %1