sphinx-apidoc works from any directory
This commit is contained in:
parent
7769136f3d
commit
bb48f47a51
1 changed files with 3 additions and 1 deletions
|
@ -289,7 +289,9 @@ def run_apidoc(_):
|
||||||
'--force',
|
'--force',
|
||||||
'-o', output_path,
|
'-o', output_path,
|
||||||
module
|
module
|
||||||
] + exclude_files)
|
] + exclude_files,
|
||||||
|
cwd=proj_dir
|
||||||
|
)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
print(red("APIdoc failed for module {}".format(module)))
|
print(red("APIdoc failed for module {}".format(module)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue