标记在狮身人面像已被弃用的类和/或方法 [英] Marking classes and/or methods as deprecated in Sphinx

查看:135
本文介绍了标记在狮身人面像已被弃用的类和/或方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Sphinx中不推荐使用类和/或方法?我只能为模块找到一个不推荐的选项。



使用通用的警告可以工作,但不会带有语义。

解决方案

我想你正在寻找 已弃用


Is there any way to mark a class and/or method as deprecated in Sphinx? I can only find a deprecated option for modules.

Using a generic admonition would work, but wouldn't carry the semantic meaning.

解决方案

I think you're looking for deprecated.

这篇关于标记在狮身人面像已被弃用的类和/或方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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