Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af46537

Browse files
committed
Update docs.
1 parent 663ed46 commit af46537

33 files changed

+44
-56
lines changed

doc-source/api/bases.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
==================================
44

55
.. autosummary-widths:: 5/16
6-
:html: 2/10
76

87
.. automodule:: domdf_python_tools.bases
98
:autosummary-members:
@@ -92,6 +91,7 @@ UserFloat
9291
:special-members:
9392
:exclude-members: __ceil__,__floor__,conjugate,imag,real
9493

94+
.. latex:clearpage::
9595
9696
Lineup
9797
---------

doc-source/api/dates.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
=================================
44

55
.. autosummary-widths:: 13/32
6-
:html: 35/100
76

87
.. automodule:: domdf_python_tools.dates
98
:undoc-members:

doc-source/api/delegators.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
=====================================
44

55
.. autosummary-widths:: 1/2
6-
:html: 25/100
76

87
.. automodule:: domdf_python_tools.delegators
98
:members: _C,delegate_kwargs,delegates

doc-source/api/doctools.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
:mod:`~domdf_python_tools.doctools`
33
===================================
44

5+
.. latex:vspace:: -20px
6+
57
.. automodule:: domdf_python_tools.doctools
68
:undoc-members:

doc-source/api/getters.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
:mod:`~domdf_python_tools.getters`
33
=======================================
44

5-
.. autosummary-widths:: 1/2
6-
:html: 4/10
5+
.. autosummary-widths:: 45/100
76

87
.. automodule:: domdf_python_tools.getters
98
:no-show-inheritance:

doc-source/api/import_tools.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
=======================================
44

55
.. autosummary-widths:: 1/2
6-
:html: 4/10
76

87
.. automodule:: domdf_python_tools.import_tools
98
:undoc-members:

doc-source/api/iterative.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
====================================
44

55
.. autosummary-widths:: 7/16
6-
:html: 28/100
76

87
.. automodule:: domdf_python_tools.iterative

doc-source/api/pagesizes/classes.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
============================================
44

55
.. autosummary-widths:: 7/16
6-
:html: 3/10
76

87
.. automodule:: domdf_python_tools.pagesizes.classes
98
:undoc-members:

doc-source/api/pagesizes/units.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
===========================================
44

55
.. autosummary-widths:: 1/2
6-
:html: 2/10
76

87
.. automodule:: domdf_python_tools.pagesizes.units
98
:autosummary-members:

doc-source/api/pagesizes/utils.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
===========================================
44

55
.. autosummary-widths:: 7/16
6-
:html: 3/10
76

87
.. automodule:: domdf_python_tools.pagesizes.utils
98
:undoc-members:

doc-source/api/paths.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
:mod:`~domdf_python_tools.paths`
33
=================================
44

5-
.. autosummary-widths:: 1/2
6-
:html: 35/100
5+
.. autosummary-widths:: 45/100
76

87
.. automodule:: domdf_python_tools.paths
98
:undoc-members:

doc-source/api/pretty_print.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
=======================================
44

55
.. autosummary-widths:: 1/2
6-
:html: 35/100
76

87
.. automodule:: domdf_python_tools.pretty_print

doc-source/api/secrets.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
==================================
44

55
.. autosummary-widths:: 4/16
6-
:html: 2/10
76

87
.. automodule:: domdf_python_tools.secrets
98
:special-members:

doc-source/api/stringlist.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
=====================================
44

55
.. autosummary-widths:: 51/128
6-
:html: 3/10
76

87
.. automodule:: domdf_python_tools.stringlist
98
:no-members:

doc-source/api/terminal.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
===================================
44

55
.. autosummary-widths:: 13/32
6-
:html: 3/10
76

87
.. automodule:: domdf_python_tools.terminal
98
:undoc-members:

doc-source/api/typing.rst

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ Protocols
8181
.. autoprotocol:: SupportsGreaterEqual
8282

8383

84+
.. latex:clearpage::
85+
8486
Utility Functions
8587
---------------------
8688

doc-source/api/utils.rst

-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
=================================
44

55
.. autosummary-widths:: 1/2
6-
:html: 35/100
7-
86
.. automodule:: domdf_python_tools.utils

doc-source/api/versions.rst

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
===================================
44

55
.. autosummary-widths:: 1/2
6-
:html: 3/10
76

87
.. automodule:: domdf_python_tools.versions
98
:undoc-members:

doc-source/api/words.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Fonts
3737
------
3838

3939
.. autosummary-widths:: 13/32
40-
:html: 3/10
4140

4241
.. automodulesumm:: domdf_python_tools.words
4342
:autosummary-members: make_font,Font,SERIF_BOLD_LETTERS,SERIF_ITALIC_LETTERS,SERIF_BOLD_ITALIC_LETTERS,SANS_SERIF_LETTERS,SANS_SERIF_BOLD_LETTERS,SANS_SERIF_ITALIC_LETTERS,SANS_SERIF_BOLD_ITALIC_LETTERS,SCRIPT_LETTERS,FRAKTUR_LETTERS,MONOSPACE_LETTERS,DOUBLESTRUCK_LETTERS
@@ -104,7 +103,6 @@ Functions
104103
-------------
105104

106105
.. autosummary-widths:: 8/16
107-
:html: 31/100
108106

109107
.. automodulesumm:: domdf_python_tools.words
110108
:autosummary-members: alpha_sort,get_words_list,get_random_word,as_text,word_join
@@ -115,11 +113,13 @@ Functions
115113
.. autofunction:: domdf_python_tools.words.get_random_word
116114
.. autofunction:: domdf_python_tools.words.word_join
117115

116+
117+
.. latex:clearpage::
118+
118119
Classes
119120
-------------
120121

121122
.. autosummary-widths:: 8/16
122-
:html: 31/100
123123

124124
.. automodulesumm:: domdf_python_tools.words
125125
:autosummary-members: Plural,PluralPhrase

doc-source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ def setup(app):
8484
manpages_url = "https://manpages.debian.org/{path}"
8585
toctree_plus_types.add("fixture")
8686
latex_elements["preamble"] = "\\usepackage{textgreek}\\usepackage{multicol}"
87+
needspace_amount = r"5\baselineskip"

doc-source/latex_unicode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
from sphinx_toolbox import latex
5353
from sphinx_toolbox.more_autodoc.typehints import default_preprocessors, format_annotation
5454
from sphinx_toolbox.more_autosummary import PatchedAutoSummClassDocumenter
55-
from sphinx_toolbox_experimental.autosummary_widths import AutosummaryWidths
55+
from sphinx_toolbox.more_autosummary.column_widths import AutosummaryWidths
5656

5757
# this package
5858
from domdf_python_tools.paths import PathPlus

doc-source/requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
git+https://github.com/sphinx-toolbox/sphinx-toolbox-experimental.git
21
default-values>=0.5.0
32
domdf-sphinx-theme>=0.3.0
43
extras-require>=0.2.0
@@ -19,7 +18,7 @@ sphinx-notfound-page>=0.7.1
1918
sphinx-prompt>=1.1.0
2019
sphinx-pyproject>=0.1.0
2120
sphinx-tabs>=1.1.13
22-
sphinx-toolbox>=2.13.0b3
21+
sphinx-toolbox>=3.0.0
2322
sphinxcontrib-httpdomain>=1.7.0
2423
sphinxemoji>=0.1.6
2524
toctree-plus>=0.5.0

domdf_python_tools/bases.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ class UserList(MutableSequence[_T]):
140140
:param initlist: The initial values to populate the :class:`~.UserList` with.
141141
:default initlist: ``[]``
142142
143+
.. latex:clearpage::
144+
143145
.. admonition:: Subclassing requirements
144146
145147
Subclasses of :class:`~.UserList` are expected to offer a constructor which can be called with
@@ -290,7 +292,11 @@ def remove(self, item: _T) -> None:
290292
291293
:param item:
292294
295+
:rtype:
296+
293297
:raises ValueError: if the item is not present.
298+
299+
.. latex:clearpage::
294300
"""
295301

296302
self.data.remove(item)
@@ -573,8 +579,6 @@ class NamedList(UserList[_T]):
573579
.. versionchanged:: 0.10.0
574580
575581
:class:`~.NamedList` now subclasses :class:`.UserList` rather than :class:`collections.UserList`.
576-
577-
.. latex:clearpage::
578582
"""
579583

580584
def __repr__(self) -> str:

domdf_python_tools/doctools.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
:autosummary-sections: Data
1111
1212
.. autosummary-widths:: 17/32
13-
:html: 4/10
1413
1514
.. automodulesumm:: domdf_python_tools.doctools
1615
:autosummary-sections: Functions
@@ -143,9 +142,7 @@ def make_sphinx_links(input_string: str, builtins_list: Optional[Sequence[str]]
143142
144143
.. code-block:: python
145144
146-
intersphinx_mapping = {
147-
"python": ("https://docs.python.org/3/", None),
148-
}
145+
intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
149146
150147
:param input_string: The string to process.
151148
:param builtins_list: A list of builtins to make links for.

domdf_python_tools/import_tools.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ def discover_in_module(
120120
"""
121121
Returns a list of objects in the given module, optionally filtered by ``match_func``.
122122
123+
.. versionadded:: 2.6.0
124+
123125
:param module: A Python module.
124126
:param match_func: Function taking an object and returning :py:obj:`True` if the object is to be included in the output.
125127
:default match_func: :py:obj:`None`, which includes all objects.
126128
:param exclude_side_effects: Don't include objects that are only there because of an import side effect.
127-
128-
.. versionadded:: 2.6.0
129129
"""
130130

131131
matching_objects = []

domdf_python_tools/pagesizes/units.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ class Unit(float):
120120
>>> 17 - (7*cm)
121121
<Unit '10.000 cm': 283.465pt>
122122
123-
.. latex:clearpage::
124123
125-
:bold-title:`Multiplcation`
124+
:bold-title:`Multiplication`
126125
127126
:class:`~domdf_python_tools.pagesizes.units.Unit` objects can only be multipled by
128127
:class:`float` and :class:`int` objects:

domdf_python_tools/paths.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ def copytree(
171171
In Python 3.8 and above :func:`shutil.copytree` takes a ``dirs_exist_ok`` argument,
172172
which has the same result.
173173
174-
.. latex:clearpage::
175-
176174
:param src: Source file to copy
177175
:param dst: Destination to copy file to
178176
:param symlinks: Whether to represent symbolic links in the source as symbolic
@@ -819,10 +817,18 @@ def is_relative_to(self, *other: Union[str, os.PathLike]) -> bool:
819817
r"""
820818
Returns whether the path is relative to another path.
821819
822-
.. versionadded:: 0.3.8 for Python 3.9 and above
823-
.. versionadded:: 1.4.0 for Python 3.6 and Python 3.7
820+
.. versionadded:: 0.3.8 for Python 3.9 and above.
821+
.. latex:vspace:: -10px
822+
.. versionadded:: 1.4.0 for Python 3.6 and Python 3.7.
823+
.. latex:vspace:: -10px
824824
825825
:param \*other:
826+
827+
.. latex:vspace:: -20px
828+
829+
:rtype:
830+
831+
.. latex:vspace:: -20px
826832
"""
827833

828834
try:
@@ -1052,7 +1058,6 @@ def matchglob(filename: PathLike, pattern: str, matchcase: bool = True) -> bool:
10521058
10531059
.. seealso:: :wikipedia:`Glob (programming)#Syntax` on Wikipedia
10541060
.. versionchanged:: 2.5.0 Added the ``matchcase`` option.
1055-
.. latex:clearpage::
10561061
"""
10571062

10581063
match_func = fnmatch.fnmatchcase if matchcase else fnmatch.fnmatch

domdf_python_tools/secrets.py

-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ class Secret(str):
5252
True
5353
5454
.. versionadded:: 0.4.6
55-
5655
.. autosummary-widths:: 1/2
57-
:html: 2/10
5856
"""
5957

6058
__slots__ = ("value", )

domdf_python_tools/stringlist.py

-2
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ def set_indent_type(self, indent_type: str = '\t'):
318318
Sets the type of the indent to insert at the beginning of new lines.
319319
320320
:param indent_type: The type of indent to use for new lines.
321-
322-
.. latex:clearpage::
323321
"""
324322

325323
self.indent.type = str(indent_type)

domdf_python_tools/typing.py

+4
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ def loads(
173173
:param parse_constant:
174174
:param object_pairs_hook:
175175
:param kwds:
176+
177+
:rtype:
178+
179+
.. latex:clearpage::
176180
"""
177181

178182

domdf_python_tools/utils.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def stderr_writer(
247247
print(*values, sep=sep, end=end, file=sys.stderr, flush=True)
248248
sys.stderr.flush()
249249

250-
250+
#: Alias of :func:`~.stderr_writer`
251251
printe = stderr_writer
252252

253253

@@ -500,10 +500,6 @@ def double_repr_string(string: str) -> str:
500500
.. versionadded:: 2.5.0
501501
502502
:param string:
503-
504-
:rtype:
505-
506-
.. latex:clearpage::
507503
"""
508504

509505
# figure out which quote to use; double is preferred

0 commit comments

Comments
 (0)