зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1593420 - Fix a sphinx warning: sphinx.build_main has moved r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D51495 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
76606dfbc7
Коммит
8846618424
|
@ -127,10 +127,9 @@ Bug 1498604 tracks bootstrapping jsdoc properly.
|
|||
open_url_delay=0.1 if auto_open else None)
|
||||
|
||||
def _run_sphinx(self, docdir, savedir, config=None, fmt='html', jobs=None):
|
||||
import sphinx
|
||||
import sphinx.cmd.build
|
||||
config = config or self.manager.conf_py_path
|
||||
args = [
|
||||
'sphinx',
|
||||
'-b', fmt,
|
||||
'-c', os.path.dirname(config),
|
||||
docdir,
|
||||
|
@ -138,7 +137,7 @@ Bug 1498604 tracks bootstrapping jsdoc properly.
|
|||
]
|
||||
if jobs:
|
||||
args.extend(['-j', jobs])
|
||||
return sphinx.build_main(args)
|
||||
return sphinx.cmd.build.build_main(args)
|
||||
|
||||
@property
|
||||
def manager(self):
|
||||
|
|
Загрузка…
Ссылка в новой задаче