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
But whenever I try to include the directive in a Sphinx project:
test
====
.. test::
I get the following error:
Extension error (sphinx.environment.collectors.toctree):
Handler <bound method TocTreeCollector.process_doc of <sphinx.environment.collectors.toctree.TocTreeCollector object at 0x7f8e3ebed390>> for event 'doctree-read' threw an exception (exception: list index out of range)
I am still very new to docutils and custom Sphinx extensions so I guess I am doing something wrong but I don't have the skills to really dig deeper.
Ps: I am using Sphinx 8.1.3 but I get the same error with Sphinx 7.x
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a very simple Sphinx extension that implement a custom directive that returns a new section:
But whenever I try to include the directive in a Sphinx project:
I get the following error:
I am still very new to
docutils
and custom Sphinx extensions so I guess I am doing something wrong but I don't have the skills to really dig deeper.Ps: I am using
Sphinx 8.1.3
but I get the same error with Sphinx 7.xBeta Was this translation helpful? Give feedback.
All reactions