History

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.

Michal Wajdeczko committed 5 years ago

Commit 06a755d1 parent c66cb171 file · +1 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kernel-doc+1−0
@@ -836,6 +836,7 @@ sub output_blockhead_rst(%) { · 835 unmodified lines
836 next if (defined($nosymbol_table{$section}));836 next if (defined($nosymbol_table{$section}));
837 837
838 if ($output_selection != OUTPUT_INCLUDE) {838 if ($output_selection != OUTPUT_INCLUDE) {
839 print ".. _$section:\n\n";
839 print "**$section**\n\n";840 print "**$section**\n\n";
840 }841 }
841 print_lineno($section_start_lines{$section});842 print_lineno($section_start_lines{$section});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t