sphinx.rst: Add note about code snippets embedded in the text
PATCH 1/1 sphinx.rst: Add note about code snippets embedded in the text
There's a paragraph that explains how to create fixed width text block, but it doesn't explains how to create fixed width text inline, although this feature is really used through the documentation. Fix that adding a quick note about it.
--- Documentation/doc-guide/sphinx.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/doc-guide/sphinx.rst +1 -1
@@ -218,7 +218,7 @@ Here are some specific guidelines for the kernel documentation: examples, etc.), use ``::`` for anything that doesn't really benefit from syntax highlighting, especially short snippets. Use ``.. code-block:: <language>`` for longer code blocks that benefit - from highlighting. + from highlighting. For a short snippet of code embedded in the text, use \`\`. the C domain
Signature · 1 line
2.22.0
Quoted 4 lines · André Almeida
There's a paragraph that explains how to create fixed width text block, but it doesn't explains how to create fixed width text inline, although this feature is really used through the documentation. Fix that adding a quick note about it.
I don't mind this addition, it's simple enough, but in general I think we should reference the Sphinx and reStructuredText documentation, whichever is more applicable, instead of duplicating the documentation. The idea is that this document describes how to use them in kernel. Contrast with coding style and language reference.
BR,
Jani.
Quoted 19 lines
Signed-off-by André Almeida <[email protected]>--- Documentation/doc-guide/sphinx.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/doc-guide/sphinx.rst +1
-1@@ -218,7 +218,7 @@ Here are some specific guidelines for the kernel documentation: examples, etc.), use ``::`` for anything that doesn't really benefit from syntax highlighting, especially short snippets. Use ``.. code-block:: <language>`` for longer code blocks that benefit - from highlighting. + from highlighting. For a short snippet of code embedded in the text, use \`\`. the C domain
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Jonathan Corbet
maintainerQuoted 6 lines · On Tue, 11 Jun 2019 17:03:16 -0300 André Almeida <[email protected]>…
There's a paragraph that explains how to create fixed width text block, but it doesn't explains how to create fixed width text inline, although this feature is really used through the documentation. Fix that adding a quick note about it.
Signed-off-by André Almeida <[email protected]>
Applied, thanks. But I do agree with Jani that we don't want to reproduce the RST guide here.
jon