-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Fix Sphinx warnings on unknown targets #107164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fix warnings like: * py:data reference target not found: Py_Version * c:func reference target not found: malloc
See also gh-107063 |
... and gh-107062 |
Docs / Docs job failed with:
|
No, you misread the CI information. This is what you need to fix ;)
|
@@ -518,9 +518,9 @@ Building values | |||
When memory buffers are passed as parameters to supply data to build objects, as | |||
for the ``s`` and ``s#`` formats, the required data is copied. Buffers provided | |||
by the caller are never referenced by the objects created by | |||
:c:func:`Py_BuildValue`. In other words, if your code invokes :c:func:`malloc` | |||
:c:func:`Py_BuildValue`. In other words, if your code invokes :c:func:`!malloc` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed; malloc
is in the nitignore list in Doc/conf.py.
:c:func:`Py_BuildValue`. In other words, if your code invokes :c:func:`!malloc` | |
:c:func:`Py_BuildValue`. In other words, if your code invokes :c:func:`malloc` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw warnings on this function on this documentation page. Maybe the PR was outdated, I don't recall the details.
I didn't know nitignore, that sounds very useful!
and passes the allocated memory to :c:func:`Py_BuildValue`, your code is | ||
responsible for calling :c:func:`free` for that memory once | ||
responsible for calling :c:func:`!free` for that memory once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto. See Doc/conf.py
responsible for calling :c:func:`!free` for that memory once | |
responsible for calling :c:func:`free` for that memory once |
I reworked this change into a serie of changes: I created issue #107298. I abandon this PR. |
Fix warnings like:
📚 Documentation preview 📚: https://cpython-previews--107164.org.readthedocs.build/