Linux Documentation
 help / color / mirror / Atom feed
* [PATCH 0/2] docs: make tables responsive with content-aware column widths
@ 2026-07-24 21:42 Rito Rhymes
  2026-07-24 21:42 ` [PATCH 1/2] docs: apply contained horizontal scroll overflow to tables Rito Rhymes
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rito Rhymes @ 2026-07-24 21:42 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Hans Verkuil
  Cc: Jonathan Corbet, Daniel Lundberg Pedersen, Randy Dunlap,
	linux-doc, linux-media

This series establishes a responsive layout foundation for generated
tables throughout the documentation site. Wide tables can use contained
horizontal scrolling on narrow viewports instead of widening the page or
compressing their columns until the content becomes unreadable.

It also derives content-aware minimum widths for each column, giving
table content a reasonable floor before wrapping. This prevents
aggressive wrapping from collapsing a column's own text into nearly
vertical lines and prevents wider columns from squeezing neighboring
columns into the same unreadable state.

This addresses the current pathological failure modes in which tables
either widen the page beyond its margins or collapse columns into
nearly vertical text.

Integration note:

This series is intended to stack on top of Mauro's "docs: custom.css:
don't limit randering to old 800px monitors", retaining its 120em body
maximum.

Jon's revert of "docs: allow inline literals in paragraphs to wrap to
prevent overflow" should not be carried forward. Patch 2 retains
overflow-wrap: anywhere and prevents the unreadable table wrapping that
motivated the revert by adding content-derived column minimums.

Rito Rhymes (2):
  docs: apply contained horizontal scroll overflow to tables
  docs: derive table column minimum widths from content

 Documentation/conf.py                  |   1 +
 Documentation/sphinx-static/custom.css | 198 ++++++++++++++++++++++++-
 Documentation/sphinx/table_layout.py   | 136 +++++++++++++++++
 3 files changed, 334 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/sphinx/table_layout.py


base-commit: a635d6748234582ea287c5ffeae28b9b23f91c7e
-- 
2.51.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-25  0:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24 21:42 [PATCH 0/2] docs: make tables responsive with content-aware column widths Rito Rhymes
2026-07-24 21:42 ` [PATCH 1/2] docs: apply contained horizontal scroll overflow to tables Rito Rhymes
2026-07-24 21:42 ` [PATCH 2/2] docs: derive table column minimum widths from content Rito Rhymes
2026-07-24 23:02 ` [PATCH 0/2] docs: make tables responsive with content-aware column widths Jonathan Corbet
2026-07-25  0:46   ` Rito Rhymes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox