TOC: list local sections first, linked pages last

13 visualizzazioni
Passa al primo messaggio da leggere

Eugene Zolotarev

da leggere,
25 ago 2016, 09:34:5025/08/16
a sphinx-dev
Let's say I have the following index.rst:

Some global topic
=====================

.. toctree::
  :glob:

  nested/index

Global topic introduction
------------------------

And nested/index.rst:

Some sub-topic
==============

I want TOC to be like:

* Some global topic
* Global topic introduction
* Some sub-topic

Instead, I get the following:

* Some global topic
* Some sub-topic
* Global topic introduction

How to make local sections appear first, and linked pages after them?

Thanks for your help!

Komiya Takeshi

da leggere,
27 ago 2016, 11:55:0127/08/16
a sphinx-dev
Hi,

What about moving your toctree after "Global topic introduction"?


BTW, this is a forum for developers.

Thanks,
Takeshi KOMIYA

2016年8月25日木曜日 22時34分50秒 UTC+9 Eugene Zolotarev:
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi