mirror of https://github.com/zulip/zulip.git
lint: Require space after likely ends of sentences in help.
This commit is contained in:
parent
6dc8d5c39e
commit
a39643da61
|
@ -8,9 +8,10 @@ stream list or through your view.
|
||||||
|
|
||||||
## Muting a topic through the stream list
|
## Muting a topic through the stream list
|
||||||
|
|
||||||
1. Find the **Streams** section located on the left sidebar.In the stream list,
|
1. Find the **Streams** section located on the left sidebar. In the
|
||||||
click on the stream that the topic you want to mute belongs to. Upon clicking on
|
stream list, click on the stream that the topic you want to mute
|
||||||
the stream, a dropdown with all the topics in the stream will appear.
|
belongs to. Upon clicking on the stream, a dropdown with all the
|
||||||
|
topics in the stream will appear.
|
||||||
|
|
||||||
3. In the stream topics dropdown, hover over a topic to reveal a {!down-chevron.md!}
|
3. In the stream topics dropdown, hover over a topic to reveal a {!down-chevron.md!}
|
||||||
To mute the topic, simply select the **Mute the topic (topic name)**
|
To mute the topic, simply select the **Mute the topic (topic name)**
|
||||||
|
|
|
@ -399,6 +399,10 @@ def build_custom_checkers(by_lang):
|
||||||
# It is okay that json_rules is empty, because the empty list
|
# It is okay that json_rules is empty, because the empty list
|
||||||
# ensures we'll still check JSON files for whitespace.
|
# ensures we'll still check JSON files for whitespace.
|
||||||
markdown_rules = markdown_whitespace_rules + prose_style_rules
|
markdown_rules = markdown_whitespace_rules + prose_style_rules
|
||||||
|
help_markdown_rules = markdown_rules + [
|
||||||
|
{'pattern': '[a-z][.][A-Z]',
|
||||||
|
'description': "Likely missing space after end of sentence"},
|
||||||
|
]
|
||||||
txt_rules = whitespace_rules
|
txt_rules = whitespace_rules
|
||||||
|
|
||||||
def check_custom_checks_py():
|
def check_custom_checks_py():
|
||||||
|
@ -453,7 +457,10 @@ def build_custom_checkers(by_lang):
|
||||||
max_length = None
|
max_length = None
|
||||||
if fn not in markdown_docs_length_exclude:
|
if fn not in markdown_docs_length_exclude:
|
||||||
max_length = 120
|
max_length = 120
|
||||||
if custom_check_file(fn, markdown_rules, max_length=max_length):
|
rules = markdown_rules
|
||||||
|
if fn.startswith("templates/zerver/help"):
|
||||||
|
rules = help_markdown_rules
|
||||||
|
if custom_check_file(fn, rules, max_length=max_length):
|
||||||
failed = True
|
failed = True
|
||||||
|
|
||||||
for fn in by_lang['txt'] + by_lang['text']:
|
for fn in by_lang['txt'] + by_lang['text']:
|
||||||
|
|
Loading…
Reference in New Issue