On Tue, May 11, 2021 at 9:34 PM Louis King wrote:
>
> forgot. yes I did add to the index.rst
> .. automodule:: wabbitFB
> :members:
OK, that looks good.
> Added the autodoc extention
OK, good.
> added the py source_suffix
You probably don't want to use .py file as Sphinx sources.
I mean there are use cases for that, but I guess that's not what you
currently want?
>> and now stuck on adding the source parser for 'py'
Don't.
>> I can't seem to get past "Source parser for python not registered"
>>
>> Can't seem to find my way through this rabbit warren.
What is happening now with your "automodule" directive?
Is there some error message or warning?
I guess you may have to tell Sphinx (and the autodoc extension) where
your .py file(s) can be found.
If your wabbitFB.py file is in the same directory as conf.py, you can
try to add this to your conf.py:
import os
import sys
sys.path.insert(0, os.path.abspath('.'))
cheers,
Matthias