lint: Enforce no lines longer than 120 characters in help docs.

This requires some somewhat messy changes to the all-streams macro.
This commit is contained in:
Tim Abbott 2017-01-05 14:08:16 -08:00
parent 25f083a284
commit bc4a9ff722
11 changed files with 29 additions and 17 deletions

View File

@ -27,8 +27,12 @@ translation support. Select your desired language from the window.
displayed in the language of your choice after you reload the page. displayed in the language of your choice after you reload the page.
!!! tip "" !!! tip ""
You can help translate parts of Zulip by signing up for an account at **[Transifex](https://www.transifex.com/zulip/zulip/)**. You can help translate parts of Zulip by signing up for an account
at **[Transifex](https://www.transifex.com/zulip/zulip/)**.
!!! tip "" !!! tip ""
If your entire organization speaks a language other than English, an administrator can If your entire organization speaks a language other than English, an administrator can
[set the default language for new users joining the organization](change-the-default-language-for-your-organization). [set the default language for new users joining the organization][change-org-lang]
[change-org-lang]: change-the-default-language-for-your-organization

View File

@ -1 +1,2 @@
If you wish to see streams that you aren't subscribed to, click on the **All Streams** tab; the tab will turn gray upon doing so. If you wish to see streams that you aren't subscribed to, click on the
**All Streams** tab; the tab will turn gray upon doing so.

View File

@ -34,7 +34,8 @@ wish to mute in the **Home** view.
{!message-actions.md!} {!message-actions.md!}
{!down-chevron.md!} {!down-chevron.md!}
2. Select the **Mute the topic (topic name)** option from the dropdown to mute the topic that the selected message belongs to. 2. Select the **Mute the topic (topic name)** option from the dropdown
to mute the topic that the selected message belongs to.
4. Upon clicking **Mute the topic (topic name)**, a tooltip titled **Topic Muted** will 4. Upon clicking **Mute the topic (topic name)**, a tooltip titled **Topic Muted** will
appear, and any messages belonging to the topic will disappear from your view, appear, and any messages belonging to the topic will disappear from your view,

View File

@ -1,10 +1,11 @@
# Unsubscribe from a stream # Unsubscribe from a stream
If you want to stop receiving messages from a particular stream in Zulip, you can choose to unsubscribe from that stream. If you want to stop receiving messages from a particular stream in
Zulip, you can choose to unsubscribe from that stream.
There are two major ways to unsubscribe from a stream: unsubscribing from a There are two major ways to unsubscribe from a stream: unsubscribing
stream through the [Subscriptions](/#subscriptions) page and unsubscribing from from a stream through the [Subscriptions](/#subscriptions) page and
a stream through the stream sidebar. unsubscribing from a stream through the stream sidebar.
## Unsubscribing from a stream through the Subscriptions page ## Unsubscribing from a stream through the Subscriptions page
@ -20,7 +21,8 @@ confirming the success of your unsubscribing from the stream.
## Unsubscribing from a stream through the stream sidebar ## Unsubscribing from a stream through the stream sidebar
If you want to quickly unsubscribe from a single stream, you can do so through the stream sidebar. If you want to quickly unsubscribe from a single stream, you can do so
through the stream sidebar.
{!stream-actions.md!} {!stream-actions.md!}

View File

@ -10,6 +10,7 @@ Your screen will look like this:
![full-size](/static/images/help/full-size.png) ![full-size](/static/images/help/full-size.png)
From here, you can also open the image in a new tab or download it. These options can be seen in the top right of your screen. From here, you can also open the image in a new tab or download
it. These options can be seen in the top right of your screen.
Click the **X** in the top right to return to your Zulip chat. Click the **X** in the top right to return to your Zulip chat.

View File

@ -436,7 +436,10 @@ def build_custom_checkers(by_lang):
failed = True failed = True
for fn in by_lang['md']: for fn in by_lang['md']:
if custom_check_file(fn, markdown_rules): max_length = None
if '/help/' in fn:
max_length = 120
if custom_check_file(fn, markdown_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']: