开发者

How to make text strikethough in Sphinx

开发者 https://www.devze.com 2023-01-29 17:28 出处:网络
Is it possible to make text s开发者_JAVA技巧trikethrough in the Sphinx documentation generator?I\'ve done this.

Is it possible to make text s开发者_JAVA技巧trikethrough in the Sphinx documentation generator?


I've done this.

Require a .CSS in your conf.py

html_style = 'mydoc.css'

In the _static/mydoc.css, use something like this

@import url("default.css");

span.strikethrough { text-decoration: line-through; }

In the document, do this.

 ..  role:: strikethrough

 make text :strikethrough:`strikethrough` in the sphinx
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号