python - Sphinx: list local sections first, linked pages last in TOC -
let's have following index.rst:
some global topic =====================  .. toctree::   :glob:    nested/index  global topic introduction ------------------------   and nested/index.rst:
some sub-topic ==============   i want toc like:
- some global topic  
- global topic introduction
 - some sub-topic
 
 
instead, following:
- some global topic  
- some sub-topic
 - global topic introduction
 
 
how make local sections appear first, , linked pages after them?
it's not perfect solution, how about
.. contents::    :local:  .. toctree::           :glob:     nested/index   that give you:
- some global topic  
- global topic introduction
 
 - some sub-topic
 
Comments
Post a Comment