Skip to content

Commit

Permalink
Made why's sections headings again, but limited the depth in the corr…
Browse files Browse the repository at this point in the history
…esponding toctree.
  • Loading branch information
epsy committed Apr 26, 2015
1 parent f9e7cf3 commit e279058
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
17 changes: 9 additions & 8 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ About Clize
-----------

.. toctree::
:maxdepth: 1

why
history
Expand All @@ -81,9 +82,9 @@ This section contains tutorials for the most commonly used features of Clize.

.. toctree::

basics
dispatching
compositing
basics
dispatching
compositing


.. _guides:
Expand All @@ -95,9 +96,9 @@ These documents document specific aspects or usages of Clize.

.. toctree::

parser
porting
interop
parser
porting
interop


.. _references:
Expand All @@ -109,5 +110,5 @@ The user reference lists all capabilities of each kind of parameter. The API ref

.. toctree::

reference
api
reference
api
6 changes: 4 additions & 2 deletions docs/why.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ With Clize, you start simple but you remain flexible throughout, with options fo

.. _other parsers:

.. rubric:: "Why not use an existing parser instead of making your own?"
"Why not use an existing parser instead of making your own?"
------------------------------------------------------------

Argument parsing is a rather common need for Python programs. As such, there
are many argument parsers in existence, including no less than three in the
Expand All @@ -125,7 +126,8 @@ by external code and made usable the same way as `clize.parameters.multi` or

.. _wrapper around argparse:

.. rubric:: "Why not create a thin wrapper around argparse?"
"Why not create a thin wrapper around argparse?"
------------------------------------------------

Back in Clize's first release, ``argparse``'s parser would have been
sufficientfor what Clize proposed. I wasn't really interested in dealing with
Expand Down

0 comments on commit e279058

Please sign in to comment.