File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Documentation/userspace-api/netlink Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,6 @@ Netlink documentation for users.
16
16
genetlink-legacy
17
17
netlink-raw
18
18
19
- See also :ref: `Documentation/core-api/netlink.rst <kernel_netlink >`.
19
+ See also:
20
+ - :ref: `Documentation/core-api/netlink.rst <kernel_netlink >`
21
+ - :ref: `Documentation/networking/netlink_spec/index.rst <specs >`
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ kernel headers directly.
15
15
Internally kernel uses the YAML specs to generate:
16
16
17
17
- the C uAPI header
18
- - documentation of the protocol as a ReST file
18
+ - documentation of the protocol as a ReST file - see :ref: ` Documentation/networking/netlink_spec/index.rst < specs >`
19
19
- policy tables for input attribute validation
20
20
- operation tables
21
21
Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ def rst_toctree(maxdepth: int = 2) -> str:
122
122
return "\n " .join (lines )
123
123
124
124
125
+ def rst_label (title : str ) -> str :
126
+ """Return a formatted label"""
127
+ return f".. _{ title } :\n \n "
128
+
129
+
125
130
# Parsers
126
131
# =======
127
132
@@ -349,7 +354,8 @@ def generate_main_index_rst(output: str) -> None:
349
354
lines = []
350
355
351
356
lines .append (rst_header ())
352
- lines .append (rst_title ("Netlink Specification" ))
357
+ lines .append (rst_label ("specs" ))
358
+ lines .append (rst_title ("Netlink Family Specifications" ))
353
359
lines .append (rst_toctree (1 ))
354
360
355
361
index_dir = os .path .dirname (output )
You can’t perform that action at this time.
0 commit comments