Skip to content

Commit 06a755d

Browse files
mwajdeczJonathan Corbet
authored andcommitted
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: Michal 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.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent c66cb17 commit 06a755d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/kernel-doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ sub output_blockhead_rst(%) {
836836
next if (defined($nosymbol_table{$section}));
837837

838838
if ($output_selection != OUTPUT_INCLUDE) {
839+
print ".. _$section:\n\n";
839840
print "**$section**\n\n";
840841
}
841842
print_lineno($section_start_lines{$section});

0 commit comments

Comments
 (0)