Sphinx通过RST设置变量

时间:2018-08-23 12:55:33

标签: documentation python-sphinx documentation-generation

我想从index.rst传递变量以在layout.html中使用。

我该怎么做?我试图用

生成新的
.. data:: newvariable

   1

但这没用。

0 个答案:

没有答案
相关问题