Building local documentation works with Python 3.12.
Clean built and build documentation files (./_build):
./_build
make clean html