diff options
author | NĂcolas F. R. A. Prado <nfraprado@protonmail.com> | 2020-09-03 02:58:19 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2020-09-03 21:50:40 +0200 |
commit | d82b1e833e7cf4265b88287f469454a66afe95d8 (patch) | |
tree | 4ddcddd78090933be57ee5ed6636b6be70f68e8c /Documentation/doc-guide | |
parent | Documentation: process: step 2: Link to email list fixed. (diff) | |
download | linux-d82b1e833e7cf4265b88287f469454a66afe95d8.tar.xz linux-d82b1e833e7cf4265b88287f469454a66afe95d8.zip |
docs: Add automatic cross-reference for C types
In order to cross-reference C types in the documentation, Sphinx
requires the syntax :c:type:`type_name`, or even :c:type:`struct
type_name <type_name>` in order to have the link text different from the
target text.
Extend automarkup to enable automatic cross-reference of C types by
matching any "struct|union|enum|typedef type_name" expression.
This makes the documentation's plain text cleaner and adds
cross-reference to types without any additional effort by the author.
Signed-off-by: NĂcolas F. R. A. Prado <nfraprado@protonmail.com>
Link: https://lore.kernel.org/r/20200903005747.3900333-2-nfraprado@protonmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/doc-guide')
0 files changed, 0 insertions, 0 deletions