From b3f9fae66a688db8b525ba91553594f4dff7d309 Mon Sep 17 00:00:00 2001 From: Prodesire Date: Sat, 28 Oct 2017 23:03:14 +0800 Subject: [PATCH] change structure of doc --- docs/index.rst | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 9fe922f..e7f28ff 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -17,7 +17,7 @@ It is with Python versions from **2.7 to 3.6**. The pydu documentation you're reading is distributed as a single HTML page. -Data Structures +Content =============== Dict @@ -75,28 +75,6 @@ Dict 1 -Set ----- - -.. class:: pydu.set.OrderedSet(iterable=None) - - A set which keeps the ordering of the inserted items. - - >>> from pydu.set import OrderedSet - >>> s = OrderedSet([1, 3, 1, 2]) - >>> list(s) - [1, 3, 2] - >>> s.discard(3) - >>> list(s) - [1, 2] - - -Utils -===== - -Dict ----- - .. function:: pydu.dict.attrify(obj) Attrify obj into ``AttriDict`` or ``list of AttriDict`` if the obj is list. @@ -116,6 +94,22 @@ Dict c +Set +---- + +.. class:: pydu.set.OrderedSet(iterable=None) + + A set which keeps the ordering of the inserted items. + + >>> from pydu.set import OrderedSet + >>> s = OrderedSet([1, 3, 1, 2]) + >>> list(s) + [1, 3, 2] + >>> s.discard(3) + >>> list(s) + [1, 2] + + String ------