modern-leather-27612
11/03/2021, 8:40 PM./pants run source/tool
(well, and get that GitLab token).
As y'all suggested, I got documentation building with Sphinx working by creating a PEX target that includes Sphinx, its plugins, and the repository's source code as dependencies. The one snafu and remaining issue is that Sphinx won't find the source code. I had to explicitly:
sys.path.insert(0, os.path.abspath('../libraries'))
sys.path.insert(0, os.path.abspath('../tasks'))
in Sphinx' conf.py
. I'm not sure why. But it won't work without.happy-kitchen-89482
11/03/2021, 9:09 PMmodern-leather-27612
11/04/2021, 2:54 PM