Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/676712 )
Change subject: [sphinx] ignore deprecated methods ......................................................................
[sphinx] ignore deprecated methods
Change-Id: Iddd7096bc382205a4b74fadc30d2515661d40cbe --- M docs/conf.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/docs/conf.py b/docs/conf.py index bbc1bb4..075f718 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -456,7 +456,7 @@ if name.startswith('__') and name.endswith('__'): return True if obj.__doc__ is not None \ - and obj.__doc__.startswith(('DEPRECATED', 'Deprecated')): + and ('DEPRECATED' in obj.__doc__ or 'Deprecated' in obj.__doc__): return True return skip or name in exclusions