jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1224699?usp=email )

Change subject: doc: use autodoc legacy to prevent missing files
......................................................................

doc: use autodoc legacy to prevent missing files

Also ignore napoleon Sphinx warnings.

Bug: T413563
Change-Id: I85b63eba2e2417b7dc19d0f02c7b0bbe5405b8c3
---
M docs/conf.py
1 file changed, 5 insertions(+), 2 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/docs/conf.py b/docs/conf.py
index 499275d..ff6d4be 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -35,7 +35,6 @@
 # Ignoring them.

 warnings.simplefilter(action='ignore', category=FutureWarning)
-warnings.simplefilter('ignore', category=DeprecationWarning)

 repo_dir = Path(__file__).resolve().parents[1]
 sys.path = [str(repo_dir), str(repo_dir / 'pywikibot')] + sys.path
@@ -470,9 +469,13 @@
 show_authors = True
 todo_include_todos = True
 autodoc_typehints = 'description'
+autodoc_use_legacy_class_based = True  # T413563

 # autosectionlabel_prefix_document = True
-suppress_warnings = ['autosectionlabel.*']
+suppress_warnings = [
+    'autosectionlabel.*',
+    'sphinx.ext.napoleon.RemovedInSphinx11Warning',
+]
 toc_object_entries_show_parents = 'hide'

 # Napoleon settings

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1224699?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I85b63eba2e2417b7dc19d0f02c7b0bbe5405b8c3
Gerrit-Change-Number: 1224699
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to