You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/markup/para.rst
+31-27Lines changed: 31 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Paragraph-level markup
9
9
These directives create short paragraphs and can be used inside information
10
10
units as well as normal text:
11
11
12
-
.. directive:: note
12
+
.. directive:: .. note::
13
13
14
14
An especially important bit of information about an API that a user should be
15
15
aware of when using whatever bit of API the note pertains to. The content of
@@ -22,13 +22,13 @@ units as well as normal text:
22
22
23
23
This function is not suitable for sending spam e-mails.
24
24
25
-
.. directive:: warning
25
+
.. directive:: .. warning::
26
26
27
27
An important bit of information about an API that a user should be very aware
28
28
of when using whatever bit of API the warning pertains to. The content of
29
29
the directive should be written in complete sentences and include all
30
-
appropriate punctuation. This differs from ``note`` in that it is recommended
31
-
over ``note`` for information regarding security.
30
+
appropriate punctuation. This differs from :dir:`note` in that it is
31
+
recommended over :dir:`note` for information regarding security.
32
32
33
33
.. directive:: .. versionadded:: version
34
34
@@ -49,34 +49,35 @@ units as well as normal text:
49
49
50
50
.. directive:: .. versionchanged:: version
51
51
52
-
Similar to ``versionadded``, but describes when and what changed in the named
52
+
Similar to :dir:`versionadded`, but describes when and what changed in the named
53
53
feature in some way (new parameters, changed side effects, etc.).
54
54
55
55
--------------
56
56
57
57
.. directive:: seealso
58
58
59
59
Many sections include a list of references to module documentation or
60
-
external documents. These lists are created using the ``seealso`` directive.
60
+
external documents. These lists are created using the :dir:`seealso`
61
+
directive.
61
62
62
-
The ``seealso`` directive is typically placed in a section just before any
63
+
The :dir:`seealso` directive is typically placed in a section just before any
63
64
sub-sections. For the HTML output, it is shown boxed off from the main flow
64
65
of the text.
65
66
66
-
The content of the ``seealso`` directive should be a reST definition list.
67
+
The content of the :dir:`seealso` directive should be a reST definition list.
67
68
Example::
68
69
69
70
.. seealso::
70
71
71
-
Module :mod:`zipfile`
72
-
Documentation of the :mod:`zipfile` standard module.
72
+
Module :py:mod:`zipfile`
73
+
Documentation of the :py:mod:`zipfile` standard module.
73
74
74
75
`GNU tar manual, Basic Tar Format <http://link>`_
75
76
Documentation for tar archive files, including GNU tar extensions.
76
77
77
78
There's also a "short form" allowed that looks like this::
0 commit comments