Dav*_*ler 2 python documentation strikethrough python-sphinx
是否有可能在sphinx文档生成器中使文本删除?
我做到了这一点.
在conf.py中需要.CSS
html_style = 'mydoc.css'
Run Code Online (Sandbox Code Playgroud)
在_static/mydoc.css
,使用这样的东西
@import url("default.css");
span.strikethrough { text-decoration: line-through; }
Run Code Online (Sandbox Code Playgroud)
在文档中,执行此操作.
.. role:: strikethrough
make text :strikethrough:`strikethrough` in the sphinx
Run Code Online (Sandbox Code Playgroud)