如何在Sphinx中使文字显得格格不入

Dav*_*ler 2 python documentation strikethrough python-sphinx

是否有可能在sphinx文档生成器中使文本删除

S.L*_*ott 9

我做到了这一点.

在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)