1.将下载下来的文件包解压,重新命名为sphinx或者其他。然后放到一个比较合适的位置,一般放到d盘根目录下面。2.找到D:\sphinx\etc里面的csft_mysql.conf这个文件,打开它,推荐用ue或者editplus。因为记事本打开会没有样式。这是因为在linux下面的文件的缘故。3.做必要的修改。因为这个修改因表不同和你想要取的内容不同,这里就没有标准的,只能给个实例我的修改是这样的:复制代码 代码如下:#源定义source main{ type = mysql sql_
Sphinx的扩展允许替换。
内容
$ pip install Sphinx-Substitution-Extensions
这支持Python 3.8+。
将以下内容添加到conf.py :
# sphinx-prompt must be the first of these two.
extensions += [ 'sphinx-prompt' , 'sphinx_substitution_extensions' ]
在conf.py设置以下变量:
rst_prolog = ""