pytest-trio icon indicating copy to clipboard operation
pytest-trio copied to clipboard

[Sphinx 7.2.6] Build error - UndefinedError("'logo' is undefined")

Open s3v- opened this issue 1 year ago • 0 comments

Hi, I'm unable to build docs with Sphinx 7.2.6.

$ sphinx-build python-pytest-trio-0.8.0/docs/source/ dummy
Running Sphinx v7.2.6
making output directory... done
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 4 source files that are out of date
updating environment: [new config] 4 added, 0 changed, 0 removed
reading sources... [100%] reference
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
/build/python-pytest-trio-0.8.0/docs/source/history.rst:67: WARNING: py:exc reference target not found: trio.Cancelled

Theme error:
An error happened in rendering the page history.
Reason: UndefinedError("'logo' is undefined")

The problem is that "layout.html" relies on "logo" variable: https://github.com/python-trio/pytest-trio/blob/e930e6f6e8fb4d2a336dfa1313fb95c91c2c1725/docs/source/_templates/layout.html#L18

but this variable was removed since Sphinx 6 and replaced by "logo_url". https://github.com/sphinx-doc/sphinx/issues/11062

Kind Regards

s3v- avatar Jan 16 '24 10:01 s3v-