Split webhooks doc and move to particular directories.

This commit is contained in:
Tomasz Kolek
2016-11-26 00:25:05 +01:00
committed by Tim Abbott
parent f7c3765c77
commit 6e6cbeb89d
46 changed files with 2088 additions and 1862 deletions

View File

@@ -395,10 +395,11 @@ def get_all_templates():
def is_valid_template(p, n):
# type: (Text, Text) -> bool
return (not n.startswith('.') and
not n.startswith('__init__') and
not n.endswith(".md") and
isfile(p))
return 'webhooks' not in p \
and not n.startswith('.') \
and not n.startswith('__init__') \
and not n.endswith('.md') \
and isfile(p)
def process(template_dir, dirname, fnames):
# type: (str, str, Iterable[str]) -> None