diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 656e008b667..0eb0f825f59 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -18,8 +18,9 @@ defaults: env: FREEZE_REQUIREMENTS: "1" - TORCH_URL: "https://download.pytorch.org/whl/cpu/" PYPI_CACHE: "_ci-cache_PyPI" + TORCH_URL: "https://download.pytorch.org/whl/cpu/" + UV_TORCH_BACKEND: "cpu" PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: "python" TOKENIZERS_PARALLELISM: false SPHINX_MOCK_REQUIREMENTS: 0 diff --git a/docs/source/conf.py b/docs/source/conf.py index 7bdeb5b34ec..8edc9ba4f25 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -305,6 +305,11 @@ def _set_root_image_path(page_path: str) -> None: } nitpicky = True +nitpick_ignore = [ + ("py:class", "typing.Self"), + ("py:data", "typing.Union"), +] + # -- Options for to-do extension ---------------------------------------------- # If true, `todo` and `todoList` produce output, else they produce nothing. @@ -455,4 +460,7 @@ def linkcode_resolve(domain, info) -> Optional[str]: # noqa: ANN001 # todo: these links seems to be unstable, referring to .devcontainer "https://code.visualstudio.com", "https://code.visualstudio.com/.*", + # Ignore Medium articles which return 403 to automated clients + # Mean-Average-Precision (mAP) and Mean-Average-Recall (mAR) + "https://jonathan-hui.medium.com/map-mean-average-precision-for-object-detection-45c121a31173", ]