Skip to content

Autodoc generated documentation overflow for python classes with a long import path #1631

@federicodabrunzo

Description

@federicodabrunzo

Problem

The documentation generated with the autoclass directive for python classes placed in a module with a long import path overflows the wy-nav-content div.

Reproducible Project

https://github.com/federicodabrunzo/render-issue-for-autodoc-generated-class-with-long-import-path/tree/main?tab=readme-ov-file

Error Logs/Results

image

Expected Results

The <dt> element containing the class import path should not overflow its containing elements.

Environment Info

  • Python Version: 3.11.9
  • Sphinx Version: 8.1.3
  • RTD Theme Version: 3.0.1

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