Skip to content

Documentation build error with Sphinx 9.04 #1253

@spjuhel

Description

@spjuhel

Describe the bug

The documentation build fails for some PR.

e.g.: https://app.readthedocs.org/projects/climada-python/builds/31551678/

Also, locally when using Sphinx 9.0.4 (No problem with 8.*)

The error is cryptic, but seem to be related to readthedocs_ext.

Extension error (readthedocs_ext.readthedocs)!

[...]

     File "/home/sjuhel/miniforge3/envs/climada_env_dev/lib/python3.11/site-packages/sphinx/events.py", line 452, in emit
        raise ExtensionError(
    sphinx.errors.ExtensionError: Handler <function update_body at 0x7b46e10e1da0> for event 'html-page-context' threw an exception (exception: 'StandaloneHTMLBuilder' object has no attribute 'css_files')

Another repo had the same problem and fixed it by removing the extension from (see jpype-project/jpype#1340)

The problem indeed disappears when removing the extension (and the doc builds fine).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions