Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] doc: Link struct tst_test and tst_tag
@ 2025-02-19 16:01 Petr Vorel
  2025-02-20 12:42 ` Andrea Cervesato via ltp
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Vorel @ 2025-02-19 16:01 UTC (permalink / raw)
  To: ltp

Although it's currently impossible to link to tst_test members,
it's still useful to make links to allow user to read the actual code.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 doc/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/conf.py b/doc/conf.py
index 2be847d90b..8cc890fcc8 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -286,7 +286,7 @@ def _generate_tags_table(tags):
             tag_val = f'`{tag_val} <{tag_url}{tag_val}>`_'
 
         table.extend([
-            f'   * - {tag_key}',
+            f'   * - :c:struct:`{tag_key} <tst_tag>`',
             f'     - {tag_val}',
         ])
 
@@ -331,6 +331,7 @@ def _generate_table_cell(key, values):
     Generate a cell which can be multiline if value is a list.
     """
     cell = []
+    key = f' :c:struct:`{key} <tst_test>`'
 
     if len(values) > 1:
         cell.extend([
-- 
2.47.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-02-21 12:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-19 16:01 [LTP] [PATCH 1/1] doc: Link struct tst_test and tst_tag Petr Vorel
2025-02-20 12:42 ` Andrea Cervesato via ltp
2025-02-20 23:00   ` Petr Vorel
2025-02-21  8:21     ` Andrea Cervesato via ltp
2025-02-21  9:23       ` Petr Vorel
2025-02-21 10:36         ` Andrea Cervesato via ltp
2025-02-21 12:57           ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox