From c76b9af3fd46660612f8ceb711d3e1231de83878 Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Mon, 7 Dec 2015 14:44:37 +0800 Subject: [PATCH] Don't generate doc from test Acoording to pbr's usage [1], we should avoid generating doc from test. [1] https://github.com/openstack-dev/pbr/blob/master/doc/source/index.rst#pbr Change-Id: Iea24bd9ac713ff6c093eac88e03ebf5dbd0eabc1 --- doc/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index 5eabf271..e68034d0 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -37,6 +37,10 @@ source_suffix = '.rst' # The master toctree document. master_doc = 'index' +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = ['api/oslo_policy.tests.*', 'api/setup.rst'] + # General information about the project. project = u'oslo.policy' copyright = u'2014, OpenStack Foundation'