Skip to content

Commit 7fe3777

Browse files
committed
Updated documentation.
1 parent 850b6c6 commit 7fe3777

File tree

15 files changed

+131
-34
lines changed

15 files changed

+131
-34
lines changed

doc-source/api/bases.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
.. automodule:: domdf_python_tools.bases
66
:autosummary:
77
:members:
8-
:undoc-members:
8+
:inherited-members:
9+
:special-members:
10+
:exclude-members: __dict__, __subclasshook__, __init_subclass__, __init__, __weakref__

doc-source/api/import_tools.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**************************************
2+
:mod:`domdf_python_tools.import_tools`
3+
**************************************
4+
5+
.. automodule:: domdf_python_tools.import_tools
6+
:autosummary:
7+
:members:
8+
:undoc-members:

doc-source/api/secrets.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*********************************
2+
:mod:`domdf_python_tools.secrets`
3+
*********************************
4+
5+
.. automodule:: domdf_python_tools.secrets
6+
:members:
7+
:autosummary:
8+
:special-members:
9+
:exclude-members: __weakref__

doc-source/api/terminal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
:members:
77
:autosummary:
88
:undoc-members:
9+
:special-members:

doc-source/api/typing.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
***********************************
2+
:mod:`domdf_python_tools.typing`
3+
***********************************
4+
5+
.. automodule:: domdf_python_tools.typing
6+
:members:
7+
:autosummary:
8+
:undoc-members:

doc-source/api/words.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*********************************
2+
:mod:`domdf_python_tools.words`
3+
*********************************
4+
5+
.. automodule:: domdf_python_tools.words
6+
:members:
7+
:autosummary:

domdf_python_tools/dates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ def parse_month(month: Union[str, int]) -> str:
202202
:type month: str or int
203203
204204
:return: The full name of the month
205-
:rtype: str
206205
"""
207206

208207
try:

domdf_python_tools/doctools.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ def deindent_string(string: Optional[str]) -> str:
3939
Removes all indentation from the given string.
4040
4141
:param string: The string to deindent
42-
:type string: str
4342
4443
:return: The string without indentation
45-
:rtype: str
4644
"""
4745

4846
if not string:
@@ -106,12 +104,9 @@ def make_sphinx_links(input_string: str, builtins_list: Optional[Sequence[str]]
106104
`intersphinx_mapping` dict of your conf.py for sphinx.
107105
108106
:param input_string: The string to process
109-
:type input_string: str
110107
:param builtins_list: A list of builtins to make links for
111-
:type builtins_list: list of str
112108
113109
:return: processed string with links
114-
:rtype: str
115110
"""
116111

117112
if builtins_list is None:
@@ -164,8 +159,8 @@ def sphinxify_docstring() -> Callable:
164159
165160
i.e. \`\`str\`\` becomes \:class\:\`~python:str\`
166161
167-
Make sure to have `'python': ('https://docs.python.org/3/', None),` in the
168-
`intersphinx_mapping` dict of your conf.py for sphinx.
162+
Make sure to have ``'python': ('https://docs.python.org/3/', None),`` in the
163+
``intersphinx_mapping`` dict of your ``conf.py`` file for Sphinx.
169164
"""
170165

171166
def wrapper(target: F) -> F:

domdf_python_tools/import_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ def discover(
5656
match_func: Optional[Callable[[Any], bool]] = None,
5757
) -> List[Type[Any]]:
5858
"""
59-
Returns a set of objects in the directory matched by match_func
59+
Returns a list of objects in the directory matched by match_func
6060
6161
:param package: A Python package
6262
:param match_func: Function taking an object and returning true if the object is to be included in the output.
63+
:default match_func: :py:obj:`None`, which includes all objects.
6364
64-
:return:
65-
:rtype:
65+
:return: List of matching objects.
6666
"""
6767

6868
matched_classes = list()

domdf_python_tools/paths.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def read(filename: PathLike, **kwargs) -> str:
174174
:param filename: The file to read from
175175
176176
:return: The contents of the file
177-
:rtype: str
178177
"""
179178

180179
with open(os.path.join(os.getcwd(), filename), **kwargs) as f:

0 commit comments

Comments
 (0)