【问题标题】:Do not number the section header in restructuredText不要对 restructuredText 中的节标题进行编号
【发布时间】:2018-02-27 13:44:06
【问题描述】:

重组后的文本文档

.. sectnum:

Document Title
==============
BlaBla

First section
-------------

BlaBla

Second section
--------------

BlaBla

呈现如下:

1。文件标题

BlaBla

1.1。第一节

BlaBla

1.2。第二节

BlaBla

如何实现以下目标?

文档标题

BlaBla

1。第一节

BlaBla

2。第二节

BlaBla

理想的方式是与 GitHub 的 restructuredText 渲染器一起使用?

【问题讨论】:

    标签: github restructuredtext


    【解决方案1】:

    好像

    .. sectnum:
    
    Document Title
    ==============
    .. contents::
    
    BlaBla
    
    First section
    -------------
    
    BlaBla
    
    Second section
    --------------
    
    BlaBla
    

    成功了。

    【讨论】:

      猜你喜欢
      • 2011-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-05
      • 1970-01-01
      • 1970-01-01
      • 2021-08-26
      • 1970-01-01
      相关资源
      最近更新 更多