我使用sphinx为python模块创建文档。在
我想在页面上添加字幕,但我不希望它们出现在目录树中。在
我想要小部分和简短(几行)的描述。将每个部分标题添加到目录树中会使浏览文档更加困难。在
这是我的索引.rst:
Welcome to ModernGL's documentation!
====================================
.. figure:: Examples/images/02_uniforms_and_attributes.png
:scale: 50 %
:alt: ModernGL
:align: center
:figclass: align-center
Start `here <ModernGL.html>`_.
.. toctree::
:maxdepth: 4
:caption: Contents:
ModernGL <ModernGL.rst>
Examples <Examples.rst>
Contributing <Contributing.rst>
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
我想添加一些副标题:
^{pr2}$我检查了文档,不知道应该使用哪种类型的下划线。不确定是否有特殊下划线将标题转换为<h4>
或{
With a github README.md adding more
#
characters will result in smaller titles. What is the equivalent in *.rst?The build documentation can be found here and it does not contain subtitles since it would ruin the current structure of the docs.
您是否尝试在} ?比如:
toctree
指令中添加^{至于“部分标题”(标题和副标题),这段摘录自official Sphinx documentation可能会给你一个答案:
您可以尝试在子部分中使用
^
字符来呈现所需的标题。在相关问题 更多 >
编程相关推荐