diff --git a/.github/workflows/docs-linkcheck.yml b/.github/workflows/docs-linkcheck.yml index f97d0cbce49..d4b28122840 100644 --- a/.github/workflows/docs-linkcheck.yml +++ b/.github/workflows/docs-linkcheck.yml @@ -32,3 +32,10 @@ jobs: python -W ignore -m pip install -r requirements-dev-all.txt - name: Check Links run: sphinx-build docs/source docs/build/html -W --keep-going -j auto -b linkcheck + - name: Upload linkcheck output + # Run also if the previous steps failed + if: always() + uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 + with: + name: linkcheck-output + path: docs/build/html/output.* diff --git a/docs/source/conf.py b/docs/source/conf.py index 09c258c9e92..b00ba68e204 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -111,6 +111,11 @@ # Anchors are apparently inserted by GitHub dynamically, so let's skip checking them "https://github.com/python-telegram-bot/python-telegram-bot/tree/master/examples#", r"https://github\.com/python-telegram-bot/python-telegram-bot/wiki/[\w\-_,]+\#", + # The LGPL license link regularly causes network errors for some reason + re.escape("https://www.gnu.org/licenses/lgpl-3.0.html"), + # The doc-fixes branch may not always exist - doesn't matter, we only link to it from the + # contributing guide + re.escape("https://docs.python-telegram-bot.org/en/doc-fixes"), ] linkcheck_allowed_redirects = { # Redirects to the default version are okay
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: