From bb48f47a51b20ee1446b5c691b46833fbaf29081 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 24 Aug 2016 11:43:15 +0200 Subject: [PATCH] sphinx-apidoc works from any directory --- doc/source/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 854ed31..b99d3ff 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -289,7 +289,9 @@ def run_apidoc(_): '--force', '-o', output_path, module - ] + exclude_files) + ] + exclude_files, + cwd=proj_dir + ) except subprocess.CalledProcessError: print(red("APIdoc failed for module {}".format(module)))