Skip to content

Commit

Permalink
Ignore opensource.org from linkcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 13, 2024
1 parent c8702a1 commit 8bdf71e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Figure out IP
run: |
curl https://ipinfo.io
- name: Try curl to get to opensource.org
run: |
curl -I https://opensource.org/ \
-v \
--http1.1 \
-H "Host: opensource.org" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" \
-H "Accept-Encoding: gzip, deflate" \
-H "Accept: */*" \
-H "Connection: keep-alive"
- name: Install Requirements
run: |
pip install --upgrade pip
Expand Down
18 changes: 7 additions & 11 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# Here it is useful to allow the configuration to be maintained elsewhere
# from starterkit_ci.sphinx_config import * # NOQA

import http.client
import os

IN_GITHUB_ACTIONS_CI = os.environ.get("GITHUB_ACTIONS", False)

# http.client.HTTPConnection.debuglevel = 1

project = "Key4hep"
copyright = "2020, Key4hep"
Expand Down Expand Up @@ -39,18 +40,13 @@
".md": "markdown",
}

# html_static_path += [
# f'_static',
# ]


# linkcheck_request_headers = {
# "https://opensource.org": {"User-Agent": "Python-urllib/3.12"}
# }

linkcheck_ignore = [
r"https://twiki.cern.ch/twiki/bin/view", # TWikis might need login
]
if IN_GITHUB_ACTIONS_CI:
linkcheck_ignore.append(
r"https://opensource.org", # cloudflare blocks requests from github actions
)


myst_heading_anchors = 3
Expand Down

0 comments on commit 8bdf71e

Please sign in to comment.