From adf2f0c38cf0e72dca0cc160102a78d24ad5d793 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Wed, 22 Apr 2015 10:11:56 -0700 Subject: [PATCH] =?UTF-8?q?Skip=20toc=E2=80=99s=20explicitly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autoapi/base.py | 1 - autoapi/domains/dotnet.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoapi/base.py b/autoapi/base.py index 5d59220..6e9efdf 100644 --- a/autoapi/base.py +++ b/autoapi/base.py @@ -22,7 +22,6 @@ class AutoAPIBase(object): '{language}/{type}.rst'.format(language=self.language, type=self.type) ) ctx.update(**self.get_context_data()) - print ctx['item_map'].keys() return template.render(**ctx) def get_absolute_path(self): diff --git a/autoapi/domains/dotnet.py b/autoapi/domains/dotnet.py index 67e2ff0..a8ffc01 100644 --- a/autoapi/domains/dotnet.py +++ b/autoapi/domains/dotnet.py @@ -52,7 +52,9 @@ class DotNetDomain(AutoAPIDomain): def get_objects(self): '''Trigger find of serialized sources and build objects''' - for path in self.find_files(): + for path in self.find_files('*.yaml'): + if path.endswith('toc.yml'): + continue data = self.read_file(path) try: obj = self.create_class(data)