From be1e94f9a2d5baf0cf1d82d510cc74ad0c30f429 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Mon, 9 Mar 2015 16:03:42 +1100 Subject: [PATCH] Don't autodoc the test suite Don't build API documentation for the keystoneclient tests. These are not public functions, pollute the existing docs, and extend the time required to build docs. Change-Id: I1206a808272d19b342d26f5117aedafb476d0994 --- doc/ext/apidoc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/ext/apidoc.py b/doc/ext/apidoc.py index 60ad23e80..545071e1f 100644 --- a/doc/ext/apidoc.py +++ b/doc/ext/apidoc.py @@ -37,9 +37,11 @@ def run_apidoc(app): package_dir = path.abspath(path.join(app.srcdir, '..', '..', 'keystoneclient')) source_dir = path.join(app.srcdir, 'api') + ignore_dir = path.join(package_dir, 'tests') apidoc.main(['apidoc', package_dir, '-f', '-H', 'keystoneclient Modules', - '-o', source_dir]) + '-o', source_dir, + ignore_dir]) def setup(app):