Skip to content

Support pydata style tables (using description lists) #247

@machow

Description

@machow

Currently, we render parameters, etc.. as tables. This causes issues with wrapping, since everything has to be on the same line.

In contrast, themes like the sphinx pydata theme use description lists for the structure of the rendered docstrings (see below).

image

Let's extend the MdRenderer to use descriptions lists:

  • Let's subclass it to start.
  • Let's extender _render_table to produce description lists
  • Let's extend the section renderers to also produce description lists

One challenge is there's some degree of nesting here (the parameters section itself is a description list, and its table of parameters is also a description list).

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions