Skip to content

Fix broken build:installation cross-reference failing the docs build#5245

Open
HarperZ9 wants to merge 1 commit into
pypa:mainfrom
HarperZ9:fix/docs-build-installation-xref
Open

Fix broken build:installation cross-reference failing the docs build#5245
HarperZ9 wants to merge 1 commit into
pypa:mainfrom
HarperZ9:fix/docs-build-installation-xref

Conversation

@HarperZ9

Copy link
Copy Markdown

Problem

The collateral (docs) job fails on main. The Quick Start guide cross-references :pypi:build's installation page through the build:installation intersphinx target, but build restructured its documentation and that page no longer exists, so Sphinx (run with warnings-as-errors) fails:

docs/userguide/quickstart.rst:22: WARNING: unknown document: 'build:installation' [ref.doc]
build finished with problems, 1 warning (with warnings treated as errors).

Verification of the new target

  • Old target: https://build.pypa.io/en/stable/installation.html -> 404
  • New target: https://build.pypa.io/en/stable/how-to/install.html -> exists (titled "Installation")

So the document moved from installation to how-to/install.

Change

One line in docs/userguide/quickstart.rst:

-You can also :doc:`install build <build:installation>` using :pypi:`pip`::
+You can also :doc:`install build <build:how-to/install>` using :pypi:`pip`::

This resolves the only ref.doc warning in the docs build. A newsfragments/ entry is included.

Note: the same CI run also shows unrelated failures (a cygwin/GitHub raw network flake and a couple of test jobs) that this docs-only change does not touch.


Disclosure: authored with AI assistance (Claude), reviewed and verified before submitting.

The Quick Start guide links to build's installation page via the
``build:installation`` intersphinx target, but build restructured its
docs and that document is now ``how-to/install`` (the old
``installation`` page returns 404; ``how-to/install`` exists). Because
the docs build runs Sphinx with warnings treated as errors, this fails
the `collateral (docs)` job on main:

    docs/userguide/quickstart.rst:22: WARNING: unknown document:
    'build:installation' [ref.doc]
    build finished with problems, 1 warning (with warnings treated as errors).

Point the cross-reference at ``build:how-to/install``.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mergify

mergify Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant