Skip to content

feat(ci): catch double spaces inside rst #308

feat(ci): catch double spaces inside rst

feat(ci): catch double spaces inside rst #308

Workflow file for this run

# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Linkcheck
on:
push:
paths:
- docs/**.rst
- docs/requirements.txt
- .github/workflows/linkcheck.yml
pull_request:
paths:
- docs/**.rst
- docs/requirements.txt
- .github/workflows/linkcheck.yml
schedule:
- cron: 30 5 * * *
permissions:
contents: read
jobs:
linkcheck:
runs-on: ubuntu-24.04
name: Linkcheck
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- uses: astral-sh/setup-uv@v3
- name: Install apt dependencies
run: |
sudo apt update
sudo apt install -y graphviz
- name: Install Python dependencies
run: |
uv pip install --system -r docs/requirements.txt
- name: Sphinx linkcheck
run: |
./ci/run-docs linkcheck
- name: Sphinx linkcheck collect
if: always()
run: |
echo "::add-matcher::.github/matchers/sphinx-linkcheck.json"
echo "::add-matcher::.github/matchers/sphinx-linkcheck-warn.json"
sed 's@^@docs/@' docs/_build/linkcheck/output.txt
echo "::remove-matcher owner=sphinx::"
echo "::remove-matcher owner=sphinx-warn::"
- uses: actions/[email protected]
if: always()
with:
name: Linkcheck report
path: docs/_build/linkcheck/output.txt