You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug AssertionError: Empty title when using the C domain
To Reproduce
Steps to reproduce the behavior:
Write .. c:function:: PyObject *PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems) (lifted from the official Sphinx documentation) in index.rst
sphinx-build -b markdown <source> <dest> trips the assertion
Disabling the assertion (python -O path/to/sphinx-build -b markdown <source> <dest>) instead yields an empty title on the function documentation
Expected behavior
A clear and concise description of what you expected to happen.
Environment:
OS: Arch Linux
Sphinx==8.2.1
sphinx-markdown-builder==0.6.8
Additional context
I tried looking into this issue, but I'm failing to grasp what the data flow is. Sorry, I don't have any more details than this.
The text was updated successfully, but these errors were encountered:
Thanks for taking the time to report this.
I added fix and test per your suggestion. It seems to work for me.
Please let me know if it solves the issue for your use case.
You can install the latest commit and see if it solves this issue for you.
If it solves it, I'll upload a new version soon.
Describe the bug
AssertionError: Empty title
when using the C domainTo Reproduce
Steps to reproduce the behavior:
.. c:function:: PyObject *PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
(lifted from the official Sphinx documentation) inindex.rst
sphinx-build -b markdown <source> <dest>
trips the assertionpython -O path/to/sphinx-build -b markdown <source> <dest>
) instead yields an empty title on the function documentationExpected behavior
A clear and concise description of what you expected to happen.
Environment:
Additional context
I tried looking into this issue, but I'm failing to grasp what the data flow is. Sorry, I don't have any more details than this.
The text was updated successfully, but these errors were encountered: