forked from mitmproxy/pdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflavors_rst.py
125 lines (84 loc) · 2.53 KB
/
flavors_rst.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
__docformat__ = "restructuredtext"
def links():
"""
For type hints, read `PEP 484`_.
See the `Python home page <http://www.python.org>`_ for info.
.. _PEP 484:
https://www.python.org/dev/peps/pep-0484/
"""
def refs():
"""Here we have refs to :py:obj:`links` and :func:`admonitions`."""
def admonitions():
"""
.. note::
This function is not suitable for sending spam e-mails.
.. warning::
This function is not suitable for sending spam e-mails.
.. versionadded:: 2.5
The *spam* parameter.
.. versionchanged:: 2.5
The *spam* parameter.
.. deprecated:: 3.1
Use :func:`spam` instead.
.. deprecated:: 3.1
This text is not part of the deprecation notice.
"""
def seealso():
# this is not properly supported yet
"""
.. seealso::
Module :py:mod:`zipfile`
Documentation of the :py:mod:`zipfile` standard module.
`GNU tar manual, Basic Tar Format <http://link>`_
Documentation for tar archive files, including GNU tar extensions.
"""
def seealso_short():
# this is not properly supported yet
"""
.. seealso:: modules :py:mod:`zipfile`, :py:mod:`tarfile`
"""
def tables():
"""
| Header 1 | *Header* 2 |
| -------- | -------- |
| `Cell 1` | [Cell 2](http://example.com) link |
| Cell 3 | **Cell 4** |
"""
def footnote1():
"""
Cite the relevant literature, e.g. [1]_. You may also cite these
references in the notes section above.
.. [1] O. McNoleg, "The integration of GIS, remote sensing,
expert systems and adaptive co-kriging for environmental habitat
modelling of the Highland Haggis using object-oriented, fuzzy-logic
and neural-network techniques," Computers & Geosciences, vol. 22,
pp. 585-588, 1996.
"""
def footnote2():
"""
Autonumbered footnotes are
possible, like using [#]_ and [#]_.
.. [#] This is the first one.
.. [#] This is the second one.
They may be assigned 'autonumber
labels' - for instance,
[#fourth]_ and [#third]_.
.. [#third] a.k.a. third_
.. [#fourth] a.k.a. fourth_
"""
def footnote3():
"""
Auto-symbol footnotes are also
possible, like this: [*]_ and [*]_.
.. [*] This is the first one.
.. [*] This is the second one.
"""
def footnote4():
"""
There is not footnote for this reference [#]_.
"""
def include():
"""
Included from another file:
.. include:: flavors_rst_include/include.rst
"""