You need to sign in or sign up before continuing.
提交 06a755d6 编写于 作者: M Michal Wajdeczko 提交者: Jonathan Corbet

scripts/kernel-doc: add internal hyperlink to DOC: sections

While DOC: section titles are not converted into RST headings
sections and are only decorated with strong emphasis markup,
nothing stops us from generating internal hyperlinks for them,
to mimic implicit hyperlinks to RST headings.
Signed-off-by: NMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://lore.kernel.org/r/20210118110813.1490-1-michal.wajdeczko@intel.comSigned-off-by: NJonathan Corbet <corbet@lwn.net>
上级 c66cb171
...@@ -836,6 +836,7 @@ sub output_blockhead_rst(%) { ...@@ -836,6 +836,7 @@ sub output_blockhead_rst(%) {
next if (defined($nosymbol_table{$section})); next if (defined($nosymbol_table{$section}));
if ($output_selection != OUTPUT_INCLUDE) { if ($output_selection != OUTPUT_INCLUDE) {
print ".. _$section:\n\n";
print "**$section**\n\n"; print "**$section**\n\n";
} }
print_lineno($section_start_lines{$section}); print_lineno($section_start_lines{$section});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册