|
28 | 28 | "sphinx_inline_tabs", |
29 | 29 | "sphinx_copybutton", |
30 | 30 | "sphinx_toolbox.collapse", |
| 31 | + "sphinx-jsonschema", |
31 | 32 | ] |
32 | 33 |
|
33 | 34 | nitpicky = True |
|
72 | 73 |
|
73 | 74 | _metrics_js_files = [ |
74 | 75 | ( |
75 | | - "https://plausible.io/js/script.js", |
| 76 | + "https://analytics.python.org/js/script.outbound-links.js", |
76 | 77 | {"data-domain": "packaging.python.org", "defer": "defer"}, |
77 | | - ) |
| 78 | + ), |
78 | 79 | ] |
79 | 80 | html_js_files = [] |
80 | 81 | if RTD_CANONICAL_BUILD: |
|
127 | 128 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder |
128 | 129 |
|
129 | 130 | linkcheck_ignore = [ |
130 | | - "http://localhost:\\d+", |
131 | | - "https://test.pypi.org/project/example-package-YOUR-USERNAME-HERE", |
132 | | - "https://pypi.org/manage/*", |
133 | | - "https://test.pypi.org/manage/*", |
| 131 | + r"http://localhost:\d+", |
| 132 | + r"https://packaging\.python\.org/en/latest/specifications/schemas/.*", |
| 133 | + r"https://test\.pypi\.org/project/example-package-YOUR-USERNAME-HERE", |
| 134 | + r"https://pypi\.org/manage/.*", |
| 135 | + r"https://test\.pypi\.org/manage/.*", |
134 | 136 | # Temporarily ignored. Ref: |
135 | 137 | # https://github.com/pypa/packaging.python.org/pull/1308#issuecomment-1775347690 |
136 | | - "https://www.breezy-vcs.org/*", |
| 138 | + r"https://www\.breezy-vcs\.org/.*", |
137 | 139 | # Ignore while StackOverflow is blocking GitHub CI. Ref: |
138 | 140 | # https://github.com/pypa/packaging.python.org/pull/1474 |
139 | | - "https://stackoverflow.com/*", |
140 | | - "https://pyscaffold.org/*", |
141 | | - "https://anaconda.org", |
| 141 | + r"https://stackoverflow\.com/.*", |
| 142 | + r"https://pyscaffold\.org/.*", |
| 143 | + r"https://anaconda\.org", |
| 144 | + r"https://www\.cisa\.gov/sbom", |
| 145 | + r"https://developers\.redhat\.com/products/softwarecollections/overview", |
| 146 | + r"https://math-atlas\.sourceforge\.net/?", |
| 147 | + r"https://click\.palletsprojects\.com/.*", |
| 148 | + r"https://typer\.tiangolo\.com/.*", |
142 | 149 | ] |
143 | 150 | linkcheck_retries = 5 |
144 | 151 | # Ignore anchors for common targets when we know they likely won't be found |
145 | 152 | linkcheck_anchors_ignore_for_url = [ |
146 | 153 | # GitHub synthesises anchors in JavaScript, so Sphinx can't find them in the HTML |
147 | 154 | r"https://github\.com/", |
| 155 | + r"https://docs\.github\.com/", |
148 | 156 | # While PyPI has its botscraping defenses active, Sphinx can't resolve the anchors |
149 | 157 | # https://github.com/pypa/packaging.python.org/issues/1744 |
150 | 158 | r"https://pypi\.org/", |
|
0 commit comments