Skip to content

Commit 90007a4

Browse files
committed
doc: Link struct tst_test and tst_tag
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. Link: https://lore.kernel.org/ltp/20250219160143.2589026-1-pvorel@suse.cz/ Acked-by: Andrea Cervesato <andrea.cervesato@suse.com> Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent fb17a4a commit 90007a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def _generate_tags_table(tags):
286286
tag_val = f'`{tag_val} <{tag_url}{tag_val}>`_'
287287

288288
table.extend([
289-
f' * - {tag_key}',
289+
f' * - :c:struct:`{tag_key} <tst_tag>`',
290290
f' - {tag_val}',
291291
])
292292

@@ -331,6 +331,7 @@ def _generate_table_cell(key, values):
331331
Generate a cell which can be multiline if value is a list.
332332
"""
333333
cell = []
334+
key = f' :c:struct:`{key} <tst_test>`'
334335

335336
if len(values) > 1:
336337
cell.extend([

0 commit comments

Comments
 (0)