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
.