Override builtin module

36 views
Skip to first unread message

Maxime Adam

unread,
Jun 6, 2019, 10:13:49 AM6/6/19
to sphinx-users
Hi, we do have a custom Python Interpreter which come with some CPython built-in module. But we would like to have the documentation in Python File. So we do have a fake package representing our Cpython method in pure python file with all our documentation.
The fake package is named in the same way than our built-in module, the path is correctly added to the conf.py.

But autosummary, of course, load the built-in module. So a solution could be to simply replace the builtin module by our fake package. But when/where should I do this. And is this even possible?
 
Another solution is to add an argument to our python interpreter to exclude our built-in module, but I would like to avoid this.
Cheers,
Thanks
Maxime.

Maxime Adam

unread,
Jun 20, 2019, 12:00:55 PM6/20/19
to sphinx-users
Any idea here?
Reply all
Reply to author
Forward
0 new messages