From bdf4f8c7d802c6f8ce4bbe6418d583a1449fe493 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Fri, 28 Jun 2024 22:08:01 -0400 Subject: docs(fix): Fix broken links, add CI to check (#2156) Signed-off-by: Dave Henderson --- .github/workflows/docs.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to '.github') 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 -- cgit v1.2.3