【发布时间】:2020-10-12 20:01:31
【问题描述】:
我想将一些 cmets 添加到 reStructuredText 文档中,这些 cmets 在我构建文档时不会显示。例如,我想将以下内容放入文件中:
This is the source of my .rst file. I would like the following block to be excluded when the docs are built.
..
This should not show up in the HTML.
This should not either.
This text would show up in the HTML, as we're past the comment block.
根据Sphinx docs,“根据输出格式化程序,cmets 可能会从处理后的输出中删除。”但是,我在 HTML output configuration docs 中没有看到任何选项。
我正在使用 Sphinx (sphinx-build) 来构建我的文档。我使用sphinx-quickstart 进行设置,然后通过make html 构建。
提前致谢!
【问题讨论】:
-
恕我直言,所有建设者都删除 cmets
标签: python python-3.x python-sphinx restructuredtext