From b5cfb0f40f63335aa4e37bfd8d6c95fdf35cf346 Mon Sep 17 00:00:00 2001 From: Maarten Sebregts Date: Mon, 9 Feb 2026 09:12:37 +0100 Subject: [PATCH 1/2] Add "click to expand" when DD definition is truncated --- docs/sphinx_dd_extension/dd_domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sphinx_dd_extension/dd_domain.py b/docs/sphinx_dd_extension/dd_domain.py index 33374c0d..a0b28d70 100644 --- a/docs/sphinx_dd_extension/dd_domain.py +++ b/docs/sphinx_dd_extension/dd_domain.py @@ -76,7 +76,7 @@ def get_summary(content: StringList, n_char=60) -> str: text = text[:break_at_space] needs_ellipsis = True if needs_ellipsis: - text = text + " [...]" + text = text + " [...] (click to expand)" return text From 5db189099c593cf4c5a97847d638411104be1c31 Mon Sep 17 00:00:00 2001 From: Maarten Sebregts Date: Tue, 3 Mar 2026 09:24:31 +0100 Subject: [PATCH 2/2] Move "Click to expand" to a tooltip --- docs/sphinx_dd_extension/dd_domain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sphinx_dd_extension/dd_domain.py b/docs/sphinx_dd_extension/dd_domain.py index a0b28d70..cce9d8d0 100644 --- a/docs/sphinx_dd_extension/dd_domain.py +++ b/docs/sphinx_dd_extension/dd_domain.py @@ -76,7 +76,7 @@ def get_summary(content: StringList, n_char=60) -> str: text = text[:break_at_space] needs_ellipsis = True if needs_ellipsis: - text = text + " [...] (click to expand)" + text = text + " [...]" return text @@ -445,7 +445,7 @@ def __init__(self, name, data_type, typ, units, summary, has_error): # Visitors of DDNode for HTML documentation: def visit_ddnode(self, node: Element) -> None: - self.body.append(self.starttag(node, "details")) + self.body.append(self.starttag(node, "details", title="Click to expand")) def depart_ddnode(self, node: Element) -> None: