【问题标题】:How to make text strikethough in Sphinx如何在 Sphinx 中添加删除线
【发布时间】:2011-05-23 13:05:18
【问题描述】:

是否可以在 Sphinx 文档生成器中制作文本删除线

【问题讨论】:

    标签: python python-sphinx strikethrough


    【解决方案1】:

    我已经做到了。

    在你的 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
    

    【讨论】:

      猜你喜欢
      • 2021-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多