Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: allow long links to wrap per character to prevent page overflow

Some documentation pages contain long link text without natural
break points, which can force page-wide horizontal scroll overflow
on small screens.

Use overflow-wrap: anywhere for anchor text in the docs stylesheet so
links can wrap per character as a fallback when normal word boundaries
are unavailable.

Examples:
https://docs.kernel.org/6.15/firmware-guide/acpi/non-d0-probe.html
https://docs.kernel.org/6.15/arch/x86/earlyprintk.html

Signed-off-by: Rito Rhymes <rito@ritovision.com>
Assisted-by: Codex:GPT-5.4
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260323152428.30483-1-rito@ritovision.com>

authored by

Rito Rhymes and committed by
Jonathan Corbet
c464407a 127bdd9f

+5
+5
Documentation/sphinx-static/custom.css
··· 170 170 overflow-wrap: anywhere; 171 171 } 172 172 173 + /* Let long link text wrap instead of forcing overflow. */ 174 + a { 175 + overflow-wrap: anywhere; 176 + } 177 + 173 178 /* Make xrefs more universally visible */ 174 179 a.reference, a.reference:hover { 175 180 border-bottom: none;