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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -