Is it possible to set Sphinx autodoc module path from Jupyter Book?

311 Views Asked by At

Is it possible to set the Sphinx autodoc Python module path from Jupyter Book, for example via _config.yml?

I'm using Jupyter Book to document a Python system and publish to Read The Docs. I can set the module path from Sphinx by adding code like this to conf.py:

import os
import sys
sys.path.insert(0, os.path.abspath("my/module/path"))

However, I'd prefer to control the path entirely from the Jupyter Book side. Otherwise I have to manually edit conf.py after generating the file with jupyter-book config sphinx path/to/book.

0

There are 0 best solutions below