aboutsummaryrefslogtreecommitdiff
path: root/describe.py
diff options
context:
space:
mode:
authorBu Sun Kim <8822365+busunkim96@users.noreply.github.com>2019-06-14 16:50:42 -0700
committerGitHub <noreply@github.com>2019-06-14 16:50:42 -0700
commit715bd7f9ca9a324a05ee05a6476af383e54930f9 (patch)
tree2d2269789ddcf6640507cb17898513c6b8db34b2 /describe.py
parent02bae1c909ec28088ebbc4007f3ef9b968b55e0a (diff)
downloadgoogle-api-python-client-715bd7f9ca9a324a05ee05a6476af383e54930f9.tar.gz
Regen all docs. (#700)
* Stop recursing if discovery == {} * Generate docs with 'make docs'.
Diffstat (limited to 'describe.py')
-rwxr-xr-xdescribe.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/describe.py b/describe.py
index 3aaaa50df..e5203d872 100755
--- a/describe.py
+++ b/describe.py
@@ -335,7 +335,8 @@ def document_collection_recursive(resource, path, root_discovery, discovery):
for name in dir(resource):
if (not name.startswith('_')
and callable(getattr(resource, name))
- and hasattr(getattr(resource, name), '__is_resource__')):
+ and hasattr(getattr(resource, name), '__is_resource__')
+ and discovery != {}):
dname = name.rsplit('_')[0]
collection = getattr(resource, name)()
document_collection_recursive(collection, path + name + '.', root_discovery,