是否可以混合外部链接并包含在toctree(已订购)中?

时间:2016-09-28 15:59:26

标签: python-sphinx

我需要以正确的顺序在我的sphinx文档的toctree中包含页面内容和一些外部链接

假设这是我的结构:

=======
Test
=======

.. toctree::
   :hidden:

   Test <http:://stackoverflow.com>

Some text

.. include page1.rst
.. include page2.rst

然后得到的toctree是

  • 测试
  • 第1页
  • 第2页

但我需要它

  • 第1页
  • 第2页
  • 测试

所以,我需要一种方法来改变toctree的顺序,或者手动将包含的页面添加到toctree,这也很好。

唯一的解决方案&#34;我现在想出的是包含虚拟文件。但这会为用户带来不太好的导航路径。

注意:此问题部分与此https://stackoverflow.com/questions/35659349/sphinx-place-minor-pages-in-the-right-place-in-the-toc/35672388#35672388

相关

0 个答案:

没有答案
相关问题