reST supports “substitutions” (ref), which are pieces of text and/or markup referred to in the text by |name|. They are defined like footnotes with explicit markup blocks, like this:
If you want to use some substitutions for all documents, put them into rst_prolog or rst_epilog or put them into a separate file and include it into all documents you want to use them in, using the include directive. (Be sure to give the include file a file name extension differing from that of other source files, to avoid Sphinx finding it as a standalone document.)
项目名由
sphinx
使用配置值引用。系统会询问您是否使用sphinx-quickstart
创建xyoursphinx
项目的名称。 您可以通过更改conf.py
中的project
来更改项目名称您可以在
.rst
文件中使用配置值,方法是在conf.py
中用rst_epilog
定义它们(请参见this answer示例)。从Sphinx documentation:
在
rst_prolog
中添加“项目变量”并使用替换。相关问题 更多 >
编程相关推荐