Hi, `conf.py` is a configuration file for "sphinx-build", not "sphinx-apidoc". So it will be never loaded from the command.
Thanks, Takeshi KOMIIYA 2021年1月20日(水) 11:31 Joshua J. Kugler <[email protected]>: > > I was invoking sphinx-apidoc from the command line, and all was working. > > We modified our build system and now sphinx is being called from a python > script. That parts looks like this: > > from sphinx.ext.apidoc import main as apidoc_main > ... > apidoc_main(['-q', '-f', '-e', '-M', '--implicit-namespaces', '-o', 'modules', > os.path.join('..', 'devkit'), > os.path.join('..', 'devkit', 'tests')]) > > It generates the API rsts, BUT it doesn't call setup() in conf.py, as > evidenced by a print statement I put in there. sphinx-build does call setup.py > when called in a similar manner. > > What is the best way to debug why setup.py isn't being called by sphinx- > apidoc? > > j > > -- > Joshua J. Kugler - Fairbanks, Alaska - [email protected] > Azariah Enterprises - Programming and Website Design > PGP Key: http://pgp.mit.edu/ ID 0x68108cbb73b13b6a > > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/3753498.taCxCBeP46%40hosanna. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAFmkQAMi0vHbgP%2BbLsvCO25WHQ-%3Dwutw6ctyr%2BpzCJE_rHOtnQ%40mail.gmail.com.
