From: Rito Rhymes Date: Mon, 23 Mar 2026 15:24:27 +0000 (-0400) Subject: docs: allow long links to wrap per character to prevent page overflow X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c464407ada06fdfc4d49bbb86085f02fd7f565c3;p=thirdparty%2Fkernel%2Flinux.git 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 Assisted-by: Codex:GPT-5.4 Tested-by: Randy Dunlap Acked-by: Randy Dunlap Signed-off-by: Jonathan Corbet Message-ID: <20260323152428.30483-1-rito@ritovision.com> --- diff --git a/Documentation/sphinx-static/custom.css b/Documentation/sphinx-static/custom.css index cadc2fac7065e..f91393426a506 100644 --- a/Documentation/sphinx-static/custom.css +++ b/Documentation/sphinx-static/custom.css @@ -170,6 +170,11 @@ div.body table.docutils a.reference { overflow-wrap: anywhere; } +/* Let long link text wrap instead of forcing overflow. */ +a { + overflow-wrap: anywhere; +} + /* Make xrefs more universally visible */ a.reference, a.reference:hover { border-bottom: none;