Hi,
I just discovered a useful thing that is not documented (at least not
where I would expect it to be at
http://sphinx.pocoo.org/markup/toctree.html)
A `toctree` with `:glob:` flag option not only supports ``*`` but also
the ``?`` wildcard character.
I use this to have the correct sort order in an automatic index for
pages are named using simple numbers, starting from `1.rst`. When I have
more than 9 files (12 for example), then a simple ``*`` would yield a
toctree sorted 1, 11, 12, 2, 3, 4. But if I use the following construct::
.. toctree::
:maxdepth: 1
:glob:
?
??
then I get the expected order 1, 2, 3, 4, 11, 12.
In short: Sphinx is great :-)
Luc
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.