Skip to content

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

Description

@s3v-

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:

<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" />

but this variable was removed since Sphinx 6 and replaced by "logo_url".
sphinx-doc/sphinx#11062

Kind Regards

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions