Connected function not being called in apidoc.

23 views
Skip to first unread message

Joshua J. Kugler

unread,
Jan 19, 2021, 9:31:03 PM1/19/21
to sphinx...@googlegroups.com
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 - jos...@azariah.com
Azariah Enterprises - Programming and Website Design
PGP Key: http://pgp.mit.edu/ ID 0x68108cbb73b13b6a


Komiya Takeshi

unread,
Jan 20, 2021, 8:01:21 AM1/20/21
to sphinx...@googlegroups.com
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 <jos...@azariah.com>:
> --
> 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 sphinx-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/3753498.taCxCBeP46%40hosanna.

Joshua J. Kugler

unread,
Jan 20, 2021, 1:43:51 PM1/20/21
to sphinx...@googlegroups.com
That's weird...because when I called it from the command line, it worked! :)

j
--
Joshua J. Kugler -- Fairbanks, AK
Blogs: http://jjncj.com/blog/ (Family) -- http://joshuakugler.com (Geek)
Philippians 2:9-11


Joshua J. Kugler

unread,
Jan 20, 2021, 3:09:46 PM1/20/21
to sphinx...@googlegroups.com
For some reason, it either wasn't seeing the environment variable I was
setting, or there was a problem with cached docs.

Thank you for your time, and sorry for the noise.
Reply all
Reply to author
Forward
0 new messages