* [PATCH 1/2] docs: allow long links to wrap per character to prevent page overflow
2026-03-21 18:08 [PATCH 0/2] docs: contain overflow from long links Rito Rhymes
@ 2026-03-21 18:08 ` Rito Rhymes
2026-03-21 18:08 ` [PATCH 2/2] docs: allow long table reference links to wrap and prevent overflow Rito Rhymes
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: Rito Rhymes @ 2026-03-21 18:08 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel, Rito Rhymes
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.
Signed-off-by: Rito Rhymes <rito@ritovision.com>
---
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;
--
2.51.0
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH 2/2] docs: allow long table reference links to wrap and prevent overflow
2026-03-21 18:08 [PATCH 0/2] docs: contain overflow from long links Rito Rhymes
2026-03-21 18:08 ` [PATCH 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
@ 2026-03-21 18:08 ` Rito Rhymes
2026-03-22 19:20 ` [PATCH v2 0/2] docs: contain overflow from long links Rito Rhymes
2026-03-23 15:24 ` [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
3 siblings, 0 replies; 11+ messages in thread
From: Rito Rhymes @ 2026-03-21 18:08 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel, Rito Rhymes
Some documentation pages contain docutils tables with reference links
that use long unbroken strings. Those strings can expand the table
width beyond the content column and cause page-wide horizontal
overflow.
Allow reference links in docutils tables in the main document body to
wrap when needed so the table stays within the content column and does
not break page layout.
Signed-off-by: Rito Rhymes <rito@ritovision.com>
---
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 4ec617d40..b41c54c71 100644
--- a/Documentation/sphinx-static/custom.css
+++ b/Documentation/sphinx-static/custom.css
@@ -154,6 +154,11 @@ a {
overflow-wrap: anywhere;
}
+/* Let rendered reference links in tables wrap when needed. */
+div.body table.docutils a.reference {
+ overflow-wrap: anywhere;
+}
+
/* Make xrefs more universally visible */
a.reference, a.reference:hover {
border-bottom: none;
--
2.51.0
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH v2 0/2] docs: contain overflow from long links
2026-03-21 18:08 [PATCH 0/2] docs: contain overflow from long links Rito Rhymes
2026-03-21 18:08 ` [PATCH 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
2026-03-21 18:08 ` [PATCH 2/2] docs: allow long table reference links to wrap and prevent overflow Rito Rhymes
@ 2026-03-22 19:20 ` Rito Rhymes
2026-03-22 19:20 ` [PATCH v2 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
2026-03-22 19:20 ` [PATCH v2 2/2] docs: allow long table reference links to wrap and prevent overflow Rito Rhymes
2026-03-23 15:24 ` [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
3 siblings, 2 replies; 11+ messages in thread
From: Rito Rhymes @ 2026-03-22 19:20 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel, Rito Rhymes
Patch 1 allows long link text to wrap per character so unbroken links
in the main document body do not force page-wide horizontal scroll
overflow.
Patch 2 remains necessary for rendered reference links inside docutils
tables, where the affected table case still needs an explicit selector
to keep the table within the content column.
Some of these pages may also overflow for other reasons, but the
examples listed under [2/2] specifically include tables containing
long reference links that may still need a table-specific CSS rule
to keep the table within the content column.
Examples of affected pages on docs.kernel.org this patch improves:
[1/2]
firmware-guide/acpi/non-d0-probe.html
firmware-guide/acpi/lpit.html
arch/arm/vlocks.html
arch/arm/keystone/overview.html
arch/arm/keystone/knav-qmss.html
arch/loongarch/introduction.html
arch/nios2/nios2.html
arch/x86/earlyprintk.html
arch/x86/orc-unwinder.html#etymology
arch/x86/tdx.html
arch/x86/sva.html
driver-api/xilinx/eemi.html
[2/2]
arch/openrisc/openrisc_port.html
power/apm-acpi.html
networking/devlink/stmmac.html
filesystems/ext2.html
networking/l2tp.html
process/embargoed-hardware-issues.html
arch/x86/boot.html
networking/devlink/devlink-info.html
admin-guide/sysctl/fs.html
userspace-api/ioctl/ioctl-number.html
Rito Rhymes (2):
docs: allow long links to wrap per character to prevent page overflow
docs: allow long table reference links to wrap and prevent overflow
Documentation/sphinx-static/custom.css | 10 ++++++++++
1 file changed, 10 insertions(+)
--
2.51.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v2 1/2] docs: allow long links to wrap per character to prevent page overflow
2026-03-22 19:20 ` [PATCH v2 0/2] docs: contain overflow from long links Rito Rhymes
@ 2026-03-22 19:20 ` Rito Rhymes
2026-03-22 19:20 ` [PATCH v2 2/2] docs: allow long table reference links to wrap and prevent overflow Rito Rhymes
1 sibling, 0 replies; 11+ messages in thread
From: Rito Rhymes @ 2026-03-22 19:20 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel, Rito Rhymes
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.
Signed-off-by: Rito Rhymes <rito@ritovision.com>
Assisted-by: Codex:GPT-5.4
---
v2: add Assisted-by attribution
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;
--
2.51.0
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH v2 2/2] docs: allow long table reference links to wrap and prevent overflow
2026-03-22 19:20 ` [PATCH v2 0/2] docs: contain overflow from long links Rito Rhymes
2026-03-22 19:20 ` [PATCH v2 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
@ 2026-03-22 19:20 ` Rito Rhymes
1 sibling, 0 replies; 11+ messages in thread
From: Rito Rhymes @ 2026-03-22 19:20 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel, Rito Rhymes
Some documentation pages contain docutils tables with reference links
that use long unbroken strings. Those strings can expand the table
width beyond the content column and cause page-wide horizontal
overflow.
Allow reference links in docutils tables in the main document body to
wrap when needed so the table stays within the content column and does
not break page layout.
Signed-off-by: Rito Rhymes <rito@ritovision.com>
Assisted-by: Codex:GPT-5.4
---
v2: add Assisted-by attribution
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 4ec617d40..b41c54c71 100644
--- a/Documentation/sphinx-static/custom.css
+++ b/Documentation/sphinx-static/custom.css
@@ -154,6 +154,11 @@ a {
overflow-wrap: anywhere;
}
+/* Let rendered reference links in tables wrap when needed. */
+div.body table.docutils a.reference {
+ overflow-wrap: anywhere;
+}
+
/* Make xrefs more universally visible */
a.reference, a.reference:hover {
border-bottom: none;
--
2.51.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow
2026-03-21 18:08 [PATCH 0/2] docs: contain overflow from long links Rito Rhymes
` (2 preceding siblings ...)
2026-03-22 19:20 ` [PATCH v2 0/2] docs: contain overflow from long links Rito Rhymes
@ 2026-03-23 15:24 ` Rito Rhymes
2026-03-23 15:24 ` [PATCH v3 2/2] docs: allow long table reference links to wrap and prevent overflow Rito Rhymes
` (2 more replies)
3 siblings, 3 replies; 11+ messages in thread
From: Rito Rhymes @ 2026-03-23 15:24 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel, rdunlap, Rito Rhymes
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
---
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;
--
2.51.0
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH v3 2/2] docs: allow long table reference links to wrap and prevent overflow
2026-03-23 15:24 ` [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
@ 2026-03-23 15:24 ` Rito Rhymes
2026-03-25 0:50 ` Randy Dunlap
2026-03-25 0:50 ` [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow Randy Dunlap
2026-03-25 19:15 ` Jonathan Corbet
2 siblings, 1 reply; 11+ messages in thread
From: Rito Rhymes @ 2026-03-23 15:24 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel, rdunlap, Rito Rhymes
Some documentation pages contain docutils tables with reference links
that use long unbroken strings. Those strings can expand the table
width beyond the content column and cause page-wide horizontal
overflow.
Allow reference links in docutils tables in the main document body to
wrap when needed so the table stays within the content column and does
not break page layout.
Examples:
https://docs.kernel.org/6.15/arch/openrisc/openrisc_port.html
https://docs.kernel.org/6.15/filesystems/ext2.html
Signed-off-by: Rito Rhymes <rito@ritovision.com>
Assisted-by: Codex:GPT-5.4
---
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 4ec617d40..b41c54c71 100644
--- a/Documentation/sphinx-static/custom.css
+++ b/Documentation/sphinx-static/custom.css
@@ -154,6 +154,11 @@ a {
overflow-wrap: anywhere;
}
+/* Let rendered reference links in tables wrap when needed. */
+div.body table.docutils a.reference {
+ overflow-wrap: anywhere;
+}
+
/* Make xrefs more universally visible */
a.reference, a.reference:hover {
border-bottom: none;
--
2.51.0
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [PATCH v3 2/2] docs: allow long table reference links to wrap and prevent overflow
2026-03-23 15:24 ` [PATCH v3 2/2] docs: allow long table reference links to wrap and prevent overflow Rito Rhymes
@ 2026-03-25 0:50 ` Randy Dunlap
0 siblings, 0 replies; 11+ messages in thread
From: Randy Dunlap @ 2026-03-25 0:50 UTC (permalink / raw)
To: Rito Rhymes, Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel
On 3/23/26 8:24 AM, Rito Rhymes wrote:
> Some documentation pages contain docutils tables with reference links
> that use long unbroken strings. Those strings can expand the table
> width beyond the content column and cause page-wide horizontal
> overflow.
>
> Allow reference links in docutils tables in the main document body to
> wrap when needed so the table stays within the content column and does
> not break page layout.
>
> Examples:
> https://docs.kernel.org/6.15/arch/openrisc/openrisc_port.html
> https://docs.kernel.org/6.15/filesystems/ext2.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>
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 4ec617d40..b41c54c71 100644
> --- a/Documentation/sphinx-static/custom.css
> +++ b/Documentation/sphinx-static/custom.css
> @@ -154,6 +154,11 @@ a {
> overflow-wrap: anywhere;
> }
>
> +/* Let rendered reference links in tables wrap when needed. */
> +div.body table.docutils a.reference {
> + overflow-wrap: anywhere;
> +}
> +
> /* Make xrefs more universally visible */
> a.reference, a.reference:hover {
> border-bottom: none;
--
~Randy
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow
2026-03-23 15:24 ` [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
2026-03-23 15:24 ` [PATCH v3 2/2] docs: allow long table reference links to wrap and prevent overflow Rito Rhymes
@ 2026-03-25 0:50 ` Randy Dunlap
2026-03-25 19:15 ` Jonathan Corbet
2 siblings, 0 replies; 11+ messages in thread
From: Randy Dunlap @ 2026-03-25 0:50 UTC (permalink / raw)
To: Rito Rhymes, Jonathan Corbet, linux-doc; +Cc: Shuah Khan, linux-kernel
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@ritovision.com>
> Assisted-by: Codex:GPT-5.4
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
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
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow
2026-03-23 15:24 ` [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow Rito Rhymes
2026-03-23 15:24 ` [PATCH v3 2/2] docs: allow long table reference links to wrap and prevent overflow Rito Rhymes
2026-03-25 0:50 ` [PATCH v3 1/2] docs: allow long links to wrap per character to prevent page overflow Randy Dunlap
@ 2026-03-25 19:15 ` Jonathan Corbet
2 siblings, 0 replies; 11+ messages in thread
From: Jonathan Corbet @ 2026-03-25 19:15 UTC (permalink / raw)
To: Rito Rhymes, linux-doc; +Cc: Shuah Khan, linux-kernel, rdunlap, Rito Rhymes
Rito Rhymes <rito@ritovision.com> writes:
> 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
> ---
> v3: add latest public versioned URL examples to the patchlog
>
> Documentation/sphinx-static/custom.css | 5 +++++
> 1 file changed, 5 insertions(+)
With these two I at least see the problem - on Chrome, at least; Firefox
does a better job of it. Again I'm not convinced this is optimal, but
I've applied them as being better than what we have.
Thanks,
jon
^ permalink raw reply [flat|nested] 11+ messages in thread