2

I'm trying to build kind of a dashboard in the index with one tile per subject. Each subject will later have its own folder in source with it's own md files.

I want each subject to be disconnected to the others. So the previous button should no go to another subject.

The structure should be something like this: enter image description here First there is an overview with all subjects, then there is a subpage with one toctree per subject and then each document has its own normal view.

Does anyone have an idea how I would go about it?

Currently I build the index like that, but this doesn't separate the files:

.. toctree::
   :maxdepth: 1
   :name: mastertoc
   :caption: Example Files:
   :glob:

   introduction
   examples

.. toctree::
   :maxdepth: 1
   :name: Subject1
   :caption: Subject1:
   :glob:

   Subject1/*

.. toctree::
   :maxdepth: 1
   :name: Subject2
   :caption: Subject2:
   :glob:

   Subject2/*
4

1 回答 1

3

如果我理解您的要求,您也希望每个主题都有一个索引页。我们在几个地方为 Pyramid 这样做,如下所示:

文档/index.rst

.. toctree::
   :maxdepth: 1
   :glob:

   api/index
   api/*

docs/api/index.rst

.. toctree::
   :maxdepth: 1
   :glob:

   *

这是在行动:

https://docs.pylonsproject.org/projects/pyramid/en/latest/#api-documentation

第一个链接指向:

https://docs.pylonsproject.org/projects/pyramid/en/latest/api/index.html

于 2018-08-21T19:37:47.917 回答