This is a backport of PR #12503 as merged into main (2f92da9190e488f40209c84bf37aca7bccb63235).
It is called when building the docs. Apparently, tox -e docs is not
invoked in CI, neither is it called in RTD, resulting in the
regression having been caught only in local development environments.
This is a backport of PR #12503 as merged into main (2f92da9190e488f40209c84bf37aca7bccb63235).
It is called when building the docs. Apparently,
tox -e docs
is not invoked in CI, neither is it called in RTD, resulting in the regression having been caught only in local development environments.This is a follow-up for #12493.