如何使文字在Sphinx中走秀 [英] How to make text strikethough in Sphinx

查看:104
本文介绍了如何使文字在Sphinx中走秀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在sphinx文档生成器中使文本删除线

Is it possible to make text strikethrough in the sphinx documentation generator?

推荐答案

需要一个.CSS在您的conf.py

Require a .CSS in your conf.py

html_style = 'mydoc.css'

_static / mydoc中。 css ,使用这样的东西

@import url("default.css");

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

在文档中,执行此操作。

In the document, do this.

 ..  role:: strikethrough

 make text :strikethrough:`strikethrough` in the sphinx

这篇关于如何使文字在Sphinx中走秀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆