Re: [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow
From: Randy Dunlap
Date: Tue Mar 24 2026 - 20:51:25 EST
On 3/23/26 8:24 AM, Rito Rhymes wrote:
> 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@xxxxxxxxxxxxxx>
> Assisted-by: Codex:GPT-5.4
Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
thanks.
> ---
> v3: add latest public versioned URL examples to the patchlog
>
> Documentation/sphinx-static/custom.css | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/sphinx-static/custom.css b/Documentation/sphinx-static/custom.css
> index db24f4344..4ec617d40 100644
> --- a/Documentation/sphinx-static/custom.css
> +++ b/Documentation/sphinx-static/custom.css
> @@ -149,6 +149,11 @@ div.language-selection ul li:hover {
> background: #dddddd;
> }
>
> +/* 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;
--
~Randy