From ccc95ea626caf670ed18c4196f00566bf433d1ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Mon, 13 Sep 2021 15:24:36 +0200 Subject: Amend explanation on the default-domain directive --- doc/tutorial/describing-code.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/tutorial') diff --git a/doc/tutorial/describing-code.rst b/doc/tutorial/describing-code.rst index bf6660b93..4e98f3605 100644 --- a/doc/tutorial/describing-code.rst +++ b/doc/tutorial/describing-code.rst @@ -54,8 +54,9 @@ Notice several things: The ``py:`` prefix specifies the :term:`domain`. You may configure the default domain so you can omit the prefix, either globally using the - :confval:`primary_domain` configuration, or per-file using the - :rst:dir:`default-domain` directive. + :confval:`primary_domain` configuration, or use the + :rst:dir:`default-domain` directive to change it from the point it is called + until the end of the file. For example, if you set it to ``py`` (the default), you can write ``.. function::`` directly. -- cgit v1.2.1