From a1a3315862cf4e584c4892e25953986d3ad34446 Mon Sep 17 00:00:00 2001 From: felix-hilden Date: Wed, 20 Apr 2022 00:12:59 +0300 Subject: [PATCH] Mention literalinclude in docs #105 --- docs/src/examples.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/examples.rst b/docs/src/examples.rst index 81a2358..1dcff96 100644 --- a/docs/src/examples.rst +++ b/docs/src/examples.rst @@ -23,6 +23,8 @@ Different import styles are supported, along with all Python syntax. Star imports might be particularly handy in code examples. `Doctest `_ and console blocks using :code:`.. code:: pycon` work too. +Including code via :rst:dir:`literalinclude` requires using a +:code:`:language: py` parameter. .. code:: pycon