We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c61e4 commit 2061b11Copy full SHA for 2061b11
docs/reST/ext/documenters.py
@@ -74,6 +74,18 @@ def get_doc(env, obj):
74
75
76
class AutopgDocumenter(autoapi.documenters.AutoapiDocumenter):
77
+ def __init__(self, *args, **kwargs):
78
+ super().__init__(*args, **kwargs)
79
+ stub_path = self.env.srcdir.parent.parent / "buildconfig" / "stubs" / "pygame"
80
+ stub_file = stub_path / f"{self.env.docname.removeprefix('ref/')}.pyi"
81
+ if stub_file.exists():
82
+ self.env.note_dependency(stub_file.as_posix())
83
+
84
+ src_path = self.env.srcdir.parent.parent / "src_py"
85
+ src_file = src_path / f"{self.env.docname.removeprefix('ref/')}.py"
86
+ if src_file.exists():
87
+ self.env.note_dependency(src_file.as_posix())
88
89
def format_signature(self, **kwargs):
90
return ""
91
0 commit comments