doc: netlink: Add hyperlinks to generated Netlink docs
authorDonald Hunter <donald.hunter@gmail.com>
Fri, 29 Mar 2024 13:50:20 +0000 (13:50 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Apr 2024 04:26:02 +0000 (21:26 -0700)
commit8c1b74a26d96705ac55a43afe7a41fc6e44be390
tree1b44bf6fb8bb6161959de0eecccea54747d2df24
parent4cc1730a90fcdeac14eb44857b566a96e1170f79
doc: netlink: Add hyperlinks to generated Netlink docs

Update ynl-gen-rst to generate hyperlinks to definitions, attribute
sets and sub-messages from all the places that reference them.

Note that there is a single label namespace for all of the kernel docs.
Hyperlinks within a single netlink doc need to be qualified by the
family name to avoid collisions.

The label format is 'family-type-name' which gives, for example,
'rt-link-attribute-set-link-attrs' as the link id.

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240329135021.52534-3-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-rst.py