mgeier / insipid-sphinx-theme

:yawning_face: An insipid theme for the Sphinx documentation generator.
https://insipid-sphinx-theme.readthedocs.io/
BSD 2-Clause "Simplified" License
38 stars 4 forks source link

Make wide tables horizontally scrollable, revert special <img> handling #68

Closed mgeier closed 2 years ago

mgeier commented 2 years ago

This supersedes and closes #66, see also #61.

This restores the <img> handling of the basic theme, making images behave like in most themes.

This has the disadvantage that images that are heavily scaled up (with :scale:) will become distorted. This is bad, but I don't know a good solution, and all Sphinx themes seem to have that same problem.

Rendered:

hagenw commented 2 years ago

Cool, thanks, it does indeed work

image

mgeier commented 2 years ago

I've tried an alternative solution in #105.

This avoids the JavaScript manipulations but makes all tables left-aligned instead of centered.

What do you think about that?

hagenw commented 2 years ago

Cool, so we can avoid JavaScript altogether.

As you said, tables are now left aligned instead of centered, but I think this fits well with the theme.