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
I have a project in c++ that use pybind11 to generate a python module.
When i use autosummary to generate the doc most things works, except for the detection of submodules.
When i look up in sphinx/ext/autosummary/generate.py it seems that it use the module __path__ variable to look for __init__.py files
def_get_modules(
obj: Any,
*,
skip: Sequence[str],
name: str,
public_members: Sequence[str] |None=None,
) ->tuple[list[str], list[str]]:
items: list[str] = []
public: list[str] = []
for_, modname, _ispkginpkgutil.iter_modules(obj.__path__):
ifmodnameinskip:
# module was overwritten in __init__.py, so not accessiblecontinue
...
However here no module posses a __path__ variable which may explain why
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
-
Hi,
I have a project in c++ that use pybind11 to generate a python module.
When i use autosummary to generate the doc most things works, except for the detection of submodules.
When i look up in
sphinx/ext/autosummary/generate.p
y it seems that it use the module__path__
variable to look for__init__.py
filesHowever here no module posses a
__path__
variable which may explain whyDoes nothing in my case to list submodules.
Is this intended and can i change the behavior here to recurse also the submodules ?
Beta Was this translation helpful? Give feedback.
All reactions