Skip to content

Commit 76657ab

Browse files
committed
doc: update references to RFCs using :rfc: role across multiple files
Sphinx has a built-in `:rfc:` role for referencing RFC documents. This commit updates documentation pages referencing RFCs to use this role. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 8c264d3 commit 76657ab

File tree

17 files changed

+57
-83
lines changed

17 files changed

+57
-83
lines changed

doc/build/dts/api-usage.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,8 @@ useful to understand them since they will frequently be seen in compiler error
391391
messages.
392392

393393
This section contains an Augmented Backus-Naur Form grammar for these
394-
generated macros, with examples and more details in comments. See `RFC 7405`_
395-
(which extends `RFC 5234`_) for a syntax specification.
394+
generated macros, with examples and more details in comments. See :rfc:`7405`
395+
(which extends :rfc:`5234`) for a syntax specification.
396396

397397
.. literalinclude:: macros.bnf
398398
:language: abnf
399-
400-
.. _RFC 7405: https://tools.ietf.org/html/rfc7405
401-
.. _RFC 5234: https://tools.ietf.org/html/rfc5234

doc/connectivity/networking/api/coap.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The Constrained Application Protocol (CoAP) is a specialized web transfer
1414
protocol for use with constrained nodes and constrained (e.g., low-power,
1515
lossy) networks. It provides a convenient API for RESTful Web services
1616
that support CoAP's features. For more information about the protocol
17-
itself, see `IETF RFC7252 The Constrained Application Protocol <https://tools.ietf.org/html/rfc7252>`_.
17+
itself, see :rfc:`7252`.
1818

1919
Zephyr provides a CoAP library which supports client and server roles.
2020
The library can be enabled with :kconfig:option:`CONFIG_COAP` Kconfig option and
@@ -29,10 +29,10 @@ See :ref:`lwm2m_interface` for more information.
2929

3030
Supported RFCs:
3131

32-
- `RFC7252: The Constrained Application Protocol (CoAP) <https://tools.ietf.org/html/rfc7252>`_
33-
- `RFC6690: Constrained RESTful Environments (CoRE) Link Format <https://tools.ietf.org/html/rfc6690>`_
34-
- `RFC7959: Block-Wise Transfers in the Constrained Application Protocol (CoAP) <https://tools.ietf.org/html/rfc7959>`_
35-
- `RFC7641: Observing Resources in the Constrained Application Protocol (CoAP) <https://tools.ietf.org/html/rfc7641>`_
32+
- :rfc:`7252` - The Constrained Application Protocol (CoAP)
33+
- :rfc:`6690` - Constrained RESTful Environments (CoRE) Link Format
34+
- :rfc:`7959` - Block-Wise Transfers in the Constrained Application Protocol (CoAP)
35+
- :rfc:`7641` - Observing Resources in the Constrained Application Protocol (CoAP)
3636

3737
.. note:: Not all parts of these RFCs are supported. Features are supported based on Zephyr requirements.
3838

doc/connectivity/networking/api/coap_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The following is an example of a very simple response handling function:
8181
CoAP options may also be added to the request by the application. The following is an example of
8282
the application adding a Block2 option to the initial request, to suggest a maximum block size to
8383
the server for a resource that it expects to be large enough to require a blockwise transfer (see
84-
RFC7959 Figure 3: Block-Wise GET with Early Negotiation).
84+
:rfc:`7959` Figure 3: Block-Wise GET with Early Negotiation).
8585

8686
.. code-block:: c
8787

doc/connectivity/networking/api/dns_resolve.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ DNS Resolve
1010
Overview
1111
********
1212

13-
The DNS resolver implements a basic DNS resolver according
14-
to `IETF RFC1035 on Domain Implementation and Specification <https://tools.ietf.org/html/rfc1035>`_.
13+
The DNS resolver implements a basic DNS resolver according to :rfc:`1035`.
1514
Supported DNS answers are IPv4/IPv6 addresses and CNAME.
1615

1716
If a CNAME is received, the DNS resolver will create another DNS query.
@@ -20,20 +19,17 @@ The number of additional queries is controlled by the
2019

2120
The multicast DNS (mDNS) client resolver support can be enabled by setting
2221
:kconfig:option:`CONFIG_MDNS_RESOLVER` Kconfig option.
23-
See `IETF RFC6762 <https://tools.ietf.org/html/rfc6762>`_ for more details
24-
about mDNS.
22+
See :rfc:`6762` for more details about mDNS.
2523

2624
The link-local multicast name resolution (LLMNR) client resolver support can be
2725
enabled by setting the :kconfig:option:`CONFIG_LLMNR_RESOLVER` Kconfig variable.
28-
See `IETF RFC4795 <https://tools.ietf.org/html/rfc4795>`_ for more details
29-
about LLMNR.
26+
See :rfc:`4795` for more details about LLMNR.
3027

3128
For more information about DNS configuration variables, see:
3229
:zephyr_file:`subsys/net/lib/dns/Kconfig`. The DNS resolver API can be found at
3330
:zephyr_file:`include/zephyr/net/dns_resolve.h`.
3431

35-
DNS-based service discovery queries described in
36-
`IETF RFC6763 <https://datatracker.ietf.org/doc/html/rfc6763>`_
32+
DNS-based service discovery queries described in :rfc:`6763`
3733
can be done by :c:func:`dns_resolve_service` API.
3834
The returned service descriptions are passed to user supplied callback
3935
and the API sets the address family to :c:macro:`AF_LOCAL` to indicate that

doc/connectivity/networking/api/ppp.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ PPP support must be enabled at compile time by setting option
2525
The PPP implementation supports only these protocols:
2626

2727
* LCP (Link Control Protocol,
28-
`RFC1661 <https://tools.ietf.org/html/rfc1661>`__)
28+
:rfc:`1661`)
2929
* HDLC (High-level data link control,
30-
`RFC1662 <https://tools.ietf.org/html/rfc1662>`__)
30+
:rfc:`1662`)
3131
* IPCP (IP Control Protocol,
32-
`RFC1332 <https://tools.ietf.org/html/rfc1332>`__)
32+
:rfc:`1332`)
3333
* IPV6CP (IPv6 Control Protocol,
34-
`RFC5072 <https://tools.ietf.org/html/rfc5072>`__)
34+
:rfc:`5072`)
3535

3636
For using PPP with a cellular modem, see :zephyr:code-sample:`cellular-modem` sample
3737
for additional information.

doc/connectivity/networking/api/sntp.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ Simple Network Time Protocol Library
1010
Overview
1111
********
1212

13-
The SNTP library implements
14-
`IETF RFC4330 (Simple Network Time Protocol v4) <https://tools.ietf.org/html/rfc4330>`_.
13+
The SNTP library implements :rfc:`4330`.
1514

1615
SNTP provides a way to synchronize clocks in computer networks.
1716

doc/connectivity/networking/api/socks5.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ See this
1717
`SOCKS5 Wikipedia article <https://en.wikipedia.org/wiki/SOCKS#SOCKS5>`_
1818
for a detailed overview of how SOCKS5 works.
1919

20-
For more information about the protocol itself, see
21-
`IETF RFC1928 SOCKS Protocol Version 5 <https://tools.ietf.org/html/rfc1928>`_.
20+
For more information about the protocol itself, see :rfc:`1928`.
2221

2322
SOCKS5 API
2423
**********

doc/connectivity/networking/api/trickle.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ Trickle Timer Library
1010
Overview
1111
********
1212

13-
The Trickle timer library implements
14-
`IETF RFC6206 (Trickle Algorithm) <https://tools.ietf.org/html/rfc6206>`_.
13+
The Trickle timer library implements :rfc:`6206`.
1514

1615
The Trickle algorithm allows nodes in a lossy shared medium (e.g.,
1716
low-power and lossy networks) to exchange information in a highly

doc/connectivity/networking/api/websocket.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ See this
1919
`Websocket Wikipedia article <https://en.wikipedia.org/wiki/WebSocket>`_
2020
for a detailed overview of how Websocket works.
2121

22-
For more information about the protocol itself, see
23-
`IETF RFC6455 The WebSocket Protocol <https://tools.ietf.org/html/rfc6455>`_.
22+
For more information about the protocol itself, see :rfc:`6455`.
2423

2524
Websocket Transport
2625
*******************

doc/connectivity/networking/net-stack-architecture.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ The network stack is layered and consists of the following parts:
5757
* **L2 Network Technologies.** This provides a common API for sending and
5858
receiving data to and from an actual network device.
5959
See :ref:`L2 overview <net_l2_interface>` for more details.
60+
6061
These network technologies include :ref:`Ethernet <ethernet_interface>`,
6162
:ref:`IEEE 802.15.4 <ieee802154_interface>`,
6263
:ref:`Bluetooth <bluetooth_api>`, :ref:`CANBUS <can_api>`, etc.
64+
6365
Some of these technologies support IPv6 header compression (6Lo),
64-
see `RFC 6282 <https://tools.ietf.org/html/rfc6282>`_ for details.
65-
For example `ARP <https://tools.ietf.org/html/rfc826>`_ for IPv4 is done by
66+
see :rfc:`6282` for details.
67+
For example ARP (:rfc:`826`) for IPv4 is done by
6668
the :ref:`Ethernet component <ethernet_interface>`.
6769

6870
* **Network Device Drivers.** The actual low-level device drivers handle the

0 commit comments

Comments
 (0)