diff options
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 8c2d6c6..cc2f9d2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -354,14 +354,15 @@ intersphinx_mapping = {'https://docs.python.org/': None} def run_apidoc(_): module = 'pymemcache' cur_dir = os.path.abspath(os.path.dirname(__file__)) - output_path = os.path.join(cur_dir, 'docs', 'apidoc') + output_path = os.path.join(cur_dir, 'apidoc') + module_path = os.path.join(cur_dir, '..', module) cmd_path = 'sphinx-apidoc' if hasattr(sys, 'real_prefix'): # Check to see if we are in a virtualenv # If we are, assemble the path manually cmd_path = os.path.abspath(os.path.join(sys.prefix, 'bin', 'sphinx-apidoc')) subprocess.check_call([cmd_path, '-e', '-o', - output_path, module, '--force']) + output_path, module_path, '--force']) def setup(app): |