Skip to content

docs(bryn): align frontend-recipes copy with Bryn voice card [BRYN-375] #1638

docs(bryn): align frontend-recipes copy with Bryn voice card [BRYN-375]

docs(bryn): align frontend-recipes copy with Bryn voice card [BRYN-375] #1638

name: Link Check (Branch)
# Post-migration: lychee runs against the *built* HTML so it exercises the same
# link graph the browser sees (including redirects from
# @docusaurus/plugin-client-redirects). The old MDX-only run was catching
# relative-path false negatives because paths changed under docs/.
on:
pull_request:
workflow_dispatch:
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: lychee-${{ github.sha }}
restore-keys: lychee-
- name: Link Checker (Built HTML)
uses: lycheeverse/lychee-action@v2
with:
args: >
--config lychee.toml
--root-dir ${{ github.workspace }}/build
--cache
--max-cache-age 1d
--no-progress
'build/**/*.html'
fail: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Issue From File
if: failure()
uses: peter-evans/create-issue-from-file@v5
with:
title: 'Link Checker Report: Broken Links Found'
content-filepath: ./lychee/out.md
labels: |
documentation
automated