docs: netlink: link to family documentations from spec info
Subsystems (4)
Jakub Kicinski
maintainerPATCH v2 1/1 docs: netlink: link to family documentations from spec info
To increase the chances of people finding the rendered docs add a link to specs.rst and index.rst.
Add a label in the generated index.rst and while at it adjust the title a little bit.
---
v2:
- add type to the arg
- link from index
v1: https://lore.kernel.org/all/[email protected]/
--- Documentation/userspace-api/netlink/index.rst | 4 +++- Documentation/userspace-api/netlink/specs.rst | 2 +- tools/net/ynl/ynl-gen-rst.py | 8 +++++++- 3 files changed, 11 insertions(+), 3 deletions(-)
Documentation/userspace-api/netlink/index.rst +3 -1
@@ -16,4 +16,6 @@ Netlink documentation for users. genetlink-legacy netlink-raw -See also :ref:`Documentation/core-api/netlink.rst <kernel_netlink>`. +See also: + - :ref:`Documentation/core-api/netlink.rst <kernel_netlink>` + - :ref:`Documentation/networking/netlink_spec/index.rst <specs>`
Documentation/userspace-api/netlink/specs.rst +1 -1
@@ -15,7 +15,7 @@ kernel headers directly. Internally kernel uses the YAML specs to generate: - the C uAPI header - - documentation of the protocol as a ReST file + - documentation of the protocol as a ReST file - see :ref:`Documentation/networking/netlink_spec/index.rst <specs>` - policy tables for input attribute validation - operation tables
tools/net/ynl/ynl-gen-rst.py +7 -1
@@ -122,6 +122,11 @@ SPACE_PER_LEVEL = 4 return "\n".join(lines) +def rst_label(title: str) -> str: + """Return a formatted label""" + return f".. _{title}:\n\n" + + # Parsers # =======
@@ -349,7 +354,8 @@ SPACE_PER_LEVEL = 4 lines = [] lines.append(rst_header()) - lines.append(rst_title("Netlink Specification")) + lines.append(rst_label("specs")) + lines.append(rst_title("Netlink Family Specifications")) lines.append(rst_toctree(1)) index_dir = os.path.dirname(output)
Signature · 1 line
2.43.0
Quoted 9 lines · Wed, Nov 29, 2023 at 05:14:27AM CET, [email protected] wrote:
To increase the chances of people finding the rendered docs add a link to
specs.rstandindex.rst.Add a label in the generated
index.rstand while at it adjust the title a little bit.Reviewed-by Breno Leitao <[email protected]>Reviewed-by Donald Hunter <[email protected]>Signed-off-by Jakub Kicinski <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 11 lines · On Tue, 28 Nov 2023 20:14:27 -0800 you wrote:
To increase the chances of people finding the rendered docs add a link to
specs.rstandindex.rst.Add a label in the generated
index.rstand while at it adjust the title a little bit.Reviewed-by Breno Leitao <[email protected]>Reviewed-by Donald Hunter <[email protected]>Signed-off-by Jakub Kicinski <[email protected]>[...]
Here is the summary with links:
- [net-next,v2] docs: netlink: link to family documentations from spec info
https://git.kernel.org/netdev/net-next/c/e8c780a57060
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html