TOC: list local sections first, linked pages last

13 views
Skip to first unread message

Eugene Zolotarev

unread,
Aug 25, 2016, 9:34:50 AM8/25/16
to 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

unread,
Aug 27, 2016, 11:55:01 AM8/27/16
to 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:
Reply all
Reply to author
Forward
0 new messages