Skip to content

Commit

Permalink
Mention literalinclude in docs #105
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hilden committed Apr 19, 2022
1 parent 2c0e1d0 commit a1a3315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Different import styles are supported, along with all Python syntax.
Star imports might be particularly handy in code examples.
`Doctest <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html
#doctest-blocks>`_ and console blocks using :code:`.. code:: pycon` work too.
Including code via :rst:dir:`literalinclude` requires using a
:code:`:language: py` parameter.

.. code:: pycon
Expand Down

0 comments on commit a1a3315

Please sign in to comment.