I'm trying to use autodoc for selected modules only. I've created a file which includes:
.. automodule:: some.specific.module
:members:
And it gets generated correctly. Unfortunately autodoc keeps trying to parse other files too (and fails because of import errors). I know I can mock out some modules, but I want a better solution - stop sphinx from looking at them to begin with.
How can I make sure only the requested module is loaded, and not (for example) test.other.module
.
So it turned out to be a stupid mistake. Since some tools generate a scaffold for api documentation sources, those files were left laying around and triggered bad imports.
How this was found:
[autodoc] /path/to/the/doc.rst:158: input:
.. automodule:: app.module.name
:members:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With