Skip to content

Theme error: UndefinedError("'style' is undefined") #1465

@kuripart

Description

@kuripart

Problem

Getting following error when building a Sphinx project:

#14 2.108 Theme error:
#14 2.108 An error happened in rendering the page about.
#14 2.108 Reason: UndefinedError("'style' is undefined")

conf.py includes the following:

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages.  See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

Setting html_style doesn't fix the issue as well.

Reproducible Project

Please give a link to a public reproducible project or provide an example of the Restructured Text that gives an issue.

Place RST code here (if any).

Error Logs/Results

#14 2.108 Theme error:
#14 2.108 An error happened in rendering the page about.
#14 2.108 Reason: UndefinedError("'style' is undefined")

Expected Results

Setting any other html_theme eg: 'bizstyle' works as expected.

Environment Info

  • Python Version: 3.9
  • Sphinx Version: 7.0.0
  • RTD Theme Version: 1.2.0

Happy to share the Dockerfile and Pipifile setting if the info provided is not enough.

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