【发布时间】:2011-05-23 13:05:18
【问题描述】:
是否可以在 Sphinx 文档生成器中制作文本删除线?
【问题讨论】:
标签: python python-sphinx strikethrough
是否可以在 Sphinx 文档生成器中制作文本删除线?
【问题讨论】:
标签: python python-sphinx strikethrough
我已经做到了。
在你的 conf.py 中需要一个 .CSS
html_style = 'mydoc.css'
在_static/mydoc.css,使用类似这样的东西
@import url("default.css");
span.strikethrough { text-decoration: line-through; }
在文档中,执行此操作。
.. role:: strikethrough
make text :strikethrough:`strikethrough` in the sphinx
【讨论】: