From 3b7215636bc60a78c83b37c136586eacdd29faab Mon Sep 17 00:00:00 2001 From: Giordon Stark Date: Tue, 30 Sep 2025 15:15:54 -0700 Subject: [PATCH 1/2] linkcheck quite broken in docs --- docs/conf.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index dddeb31188..c4c2dd84c3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -146,11 +146,9 @@ def setup(app): # today_fmt = '%B %d, %Y' autodoc_mock_imports = [ - 'tensorflow', 'torch', 'jax', 'iminuit', - 'tensorflow_probability', ] @@ -529,6 +527,20 @@ def setup(app): # and ReadTheDocs need to reference them r'https://github.com/scikit-hep/pyhf/releases/tag/.*', r'https://pyhf.readthedocs.io/en/.*', + # the following are 403s as they map to journals.aps.org or academic.oup.com + r'https://doi.org/10.1093/ptep/ptad144', + r'https://doi.org/10.1103/PhysRevD.104.055017', + r'https://doi.org/10.1103/PhysRevD.107.095021', + r'https://doi.org/10.1103/PhysRevD.108.016002', + r'https://doi.org/10.1103/PhysRevD.106.032005', + r'https://doi.org/10.1103/PhysRevLett.127.181802', + r'https://doi.org/10.1103/PhysRevLett.130.231801', + r'https://doi.org/10.1103/PhysRevLett.131.211802', + # FNAL blocks GitHub Actions? + r'https://indico.fnal.gov/event/17566/contributions/44103/', + r'https://indico.fnal.gov/event/17566/session/0/contribution/99', + # GitHub anchor links don't work + r'https://github.com/scikit-hep/pyhf/issues/850#issuecomment-1239975121', ] linkcheck_retries = 50 From 1544f6c2197ab2e9eb316147101cab7ffaee05f1 Mon Sep 17 00:00:00 2001 From: Giordon Stark Date: Tue, 30 Sep 2025 15:20:15 -0700 Subject: [PATCH 2/2] whoops --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index c4c2dd84c3..dde69bd167 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -146,9 +146,11 @@ def setup(app): # today_fmt = '%B %d, %Y' autodoc_mock_imports = [ + 'tensorflow', 'torch', 'jax', 'iminuit', + 'tensorflow_probability', ]