Skip to content

Add Rosetta to Docker installation instructions #297

Add Rosetta to Docker installation instructions

Add Rosetta to Docker installation instructions #297

Workflow file for this run

name: Check docs links
on:
pull_request:
branches:
- main
- feature/*
paths:
- docs/**
jobs:
check-docs-links:
if: github.repository_owner == 'AlexsLemonade'
runs-on: ubuntu-latest
name: Check links
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install python dependencies
run: |
pip install -r docs/requirements.txt
- name: Find all the broken links
id: find_links
run: |
# Build the site and save log output
mkdocs build &> build-log.txt
# Capture all the bad links (don't let grep exit -1 if no match)
grep "relative link" build-log.txt > bad_links.txt || true
grep "no such anchor" build-log.txt >> bad_links.txt || true
# Save the number of bad links to github output
echo "n_bad_links=$(wc -l < bad_links.txt)" >> "$GITHUB_OUTPUT"
- name: Upload artifact
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: bad_links
path: bad_links.txt
- name: Fail if there are bad links
if: steps.find_links.outputs.n_bad_links > 0
run: |
echo "There were ${{ steps.find_links.outputs.n_bad_links }} link errors"
cat bad_links.txt
exit 1