update linkcheck (#9193)

This commit is contained in:
Paul Kehrer 2023-07-07 11:32:58 -05:00 committed by GitHub
parent f4b7707af5
commit b5709f7d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,9 @@
name: linkcheck
on:
pull_request: {}
pull_request:
paths:
- docs/conf.py
- .github/workflows/linkcheck.yml
push:
branches:
- main
@ -13,7 +16,6 @@ env:
jobs:
docs-linkcheck:
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request' && contains(github.event.pull_request.title, 'linkcheck'))
runs-on: ubuntu-latest
name: "linkcheck"
timeout-minutes: 10

View file

@ -202,6 +202,9 @@ linkcheck_ignore = [
r"https://www.oscca.gov.cn",
# Cloudflare returns 403s for all non-browser requests
r"https://speakerdeck.com",
# GitHub changed how they do page renders so anchor detection
# no longer works in source view
r"https://github.com/.*/blob/.*#L\d+",
]
autosectionlabel_prefix_document = True