# Re: \[PATCH v7 03/17\] docs: netlink: netlink-raw.rst: use :ref: instead of :doc:

- From: Donald Hunter \<donald.hunter@gmail.com\>
- Date: 2025-06-19 12:20:00 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/06/3098995
- Thread: https://ratatoskr.run/linux-doc/2025/06/3098523/t.md

```text
Mauro Carvalho Chehab [ref] writes:

> Currently, rt documents are referred with:
>
> Documentation/userspace-api/netlink/netlink-raw.rst: :doc:`rt-link<../../networking/netlink_spec/rt-link>`
> Documentation/userspace-api/netlink/netlink-raw.rst: :doc:`tc<../../networking/netlink_spec/tc>`
> Documentation/userspace-api/netlink/netlink-raw.rst: :doc:`tc<../../networking/netlink_spec/tc>`
>
> Having :doc: references with relative paths doesn't always work,
> as it may have troubles when O= is used. Also that's hard to
> maintain, and may break if we change the way rst files are
> generated from yaml. Better to use instead a reference for
> the netlink family.
>
> So, replace them by Sphinx cross-reference tag that are
> created by ynl_gen_rst.py.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
```
