Open leguyader opened 2 years ago
It looks like we are triggering some incompatibility between autoapi and nbsphinx. But I found this project https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public for example that uses both without problem. I confirmed it by building the documentation for this project locally.
I tried to copy some of the autoapi configuration from that exo_k project conf.py but nothing helped, we get an error from our documentation which we don't understand.
Please provide a minimal reproducing example, ideally one page of documentation that triggers the bug.
Please also confirm it is not an issue with the extensions you mentioned but Sphinx itself.
A
Looking for a minimal example, I found out that the error was triggered by 2 of our files having the following structure:
"""
Class
-----
"""
class Class:
def __init__(self, num):
self.num = num
The error is generated by line 3, '-----'
Describe the bug
With autoapi activated building the documentation fails. We don't really understand the error message or what's causing the issue and how to fix it.
How to Reproduce
Expected behavior
The documentation should compile, but with autoapi it doesn't.
We get the following error:
Attached the corresponding traceback: log.txt
Your project
https://git.xfel.eu/SCS/ToolBox
Screenshots
No response
OS
unix
Python version
3.8.10
Sphinx version
4.2.0
Sphinx extensions
autoapi, nbsphinx
Extra tools
No response
Additional context
No response