mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Split webhooks doc and move to particular directories.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user