Skip to content

Html docs CSS glitch in theme leads to horizontal stacking #17

@samblenny

Description

@samblenny

There's a problem with the current RTD theme where html docs generated by Sphinx use a display: inline-block where it should instead be display: block. The result is that items with short names can stack up horizontally on the same line. Probably this happens in many Adafruit repos, but I noticed it in this one just now:

Image

The fix is pretty simple. You just need to add a custom css file with one rule to the rtd theme. If you look at the changed files for this PR, https://github.com/adafruit/Adafruit_CircuitPython_TLV320/pull/10/files ,
you can see the necessary code in docs/_static/custom.css
and docs/conf.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions