Hi all,

I have to sort in a custom way the toctree despite the glob flag option.
Thanks to Google, I found some solutions like this : 
http://stackoverflow.com/questions/8324959/within-a-sphinx-documentation-how-can-i-revert-the-order-of-the-toctree-that-is

class SortedTocTree(TocTree):

def run(self):
rst = super(SortedTocTree, self).run()
# some specific stuff
# ...

return rst

def setup(app):
    app.add_directive('toctree', SortedTocTree)

This works very well, but the previous/next chapter feature of the HTML 
output is inconsistent with the new toctree order :(
it seems I'm not the only one to experience this problem. This thread (
https://groups.google.com/d/topic/sphinx-users/gzAxws9GLOo/discussion) 
gives a solution that is not very clean (disk access).

Is there an other way?

Many thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to