diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2021-01-18 12:08:13 +0100 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2021-01-28 16:35:00 -0700 |
commit | 06a755d6269c072ed0c9b84227eaf33113dc243f (patch) | |
tree | 23f8377075fb0b4f32f216b286dd0ab657b795dc /scripts | |
parent | c66cb171bc308c64083f3bb173152db68e06e79f (diff) | |
download | linux-06a755d6269c072ed0c9b84227eaf33113dc243f.tar.bz2 |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/kernel-doc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index a9a92e623dbc..e046e16e4411 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -836,6 +836,7 @@ sub output_blockhead_rst(%) { next if (defined($nosymbol_table{$section})); if ($output_selection != OUTPUT_INCLUDE) { + print ".. _$section:\n\n"; print "**$section**\n\n"; } print_lineno($section_start_lines{$section}); |