在 Nbsphinx 的 .rst 文件中在哪里写我的 Jupyter-notebook 文件名

Where to write my Jupyter-notebook file name in .rst file in Nbsphinx

我已经阅读了文档并编辑了 conf.py 文件,但是我不知道在目录树中为 index.rst 文件写我的文件名的地方??

Jupyter 笔记本名称:Start.ipynb

https://nbsphinx.readthedocs.io/en/0.5.1/usage.html#Running-Sphinx

如果您想将笔记本 Start.ipynb 用作主页, 您应该将其重命名为 index.ipynb(并删除 index.rst)。

如果您想将 index.rst 保留为主页面, 您可以像这样添加 Start.ipynb

.. toctree::
   :maxdepth: 2
   :caption: Contents:

   Start

您当然可以更改(或删除):maxdepth::caption: 选项。