Skip to content

Commit 9b929ac

Browse files
committed
More docs tweaks
1 parent 4450643 commit 9b929ac

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/api.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ This package offers the following abstract base classes:
145145
:meth:`~JoinablePath.__vfspath__`
146146

147147
:meth:`~JoinablePath.with_segments`
148-
* :attr:`~JoinablePath.parts`
148+
* :meth:`~JoinablePath.joinpath`
149+
:meth:`~JoinablePath.__truediv__`
150+
:meth:`~JoinablePath.__rtruediv__`
151+
152+
:attr:`~JoinablePath.parts`
149153
:attr:`~JoinablePath.anchor`
150154

151155
:attr:`~JoinablePath.parent`
@@ -160,10 +164,6 @@ This package offers the following abstract base classes:
160164
:meth:`~JoinablePath.with_stem`
161165
:meth:`~JoinablePath.with_suffix`
162166

163-
:meth:`~JoinablePath.joinpath`
164-
:meth:`~JoinablePath.__truediv__`
165-
:meth:`~JoinablePath.__rtruediv__`
166-
167167
:meth:`~JoinablePath.relative_to`
168168
:meth:`~JoinablePath.is_relative_to`
169169

@@ -222,6 +222,20 @@ This package offers the following abstract base classes:
222222
derivative path is created, such as from :attr:`parent` and
223223
:meth:`with_name`.
224224

225+
.. method:: joinpath(*pathsegments)
226+
227+
Return a new path with the given path segments joined onto the end. The
228+
default implementation calls :meth:`with_segments` with the combined
229+
segments.
230+
231+
.. method:: __truediv__(pathsegment)
232+
233+
Return a new path with the given path segment joined on the end.
234+
235+
.. method:: __rtruediv__(pathsegment)
236+
237+
Return a new path with the given path segment joined on the beginning.
238+
225239
.. attribute:: parts
226240

227241
Tuple of path components. The default implementation repeatedly calls
@@ -280,20 +294,6 @@ This package offers the following abstract base classes:
280294
Return a new path with a different :attr:`suffix`, similarly to
281295
:meth:`with_name`.
282296

283-
.. method:: joinpath(*pathsegments)
284-
285-
Return a new path with the given path segments joined onto the end. The
286-
default implementation calls :meth:`with_segments` with the combined
287-
segments.
288-
289-
.. method:: __truediv__(pathsegment)
290-
291-
Return a new path with the given path segment joined on the end.
292-
293-
.. method:: __rtruediv__(pathsegment)
294-
295-
Return a new path with the given path segment joined on the beginning.
296-
297297
.. method:: relative_to(other, *, walk_up=False)
298298

299299
Return a new relative path from *other* to this path. The default

0 commit comments

Comments
 (0)