Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
markdown: Rewrite include plugin without markdown-include.
Anders Kaseorgdc33a0ae6734
diff --git a/docs/documentation/integrations.md b/docs/documentation/integrations.mdindex 844c94cbbe5..69decaa248e 100644--- a/docs/documentation/integrations.md+++ b/docs/documentation/integrations.md@@ -76,7 +76,7 @@ Here are a few common macros used to document Zulip's integrations:integration or incoming webhook. For an example rendering, see **Step 1** of[the docs for Zulip's GitHub integration][github-integration].-- `{!create-bot-construct-url-indented.md!}` macro - Instructs users to create a bot+- `{!create-bot-construct-url.md!}` macro - Instructs users to create a botfor a given integration and construct a webhook URL using the bot API keyand stream name. The URL is generated automatically for every incoming webhookby using attributes in the `WebhookIntegration` class in@@ -94,12 +94,12 @@ Here are a few common macros used to document Zulip's integrations:- `{!append-stream-name.md!}` macro - Recommends appending `&stream=stream_name`to a URL in cases where supplying a stream name in the URL is optional.Supplying a stream name is optional for most Zulip integrations. If you use- `{!create-bot-construct-url-indented.md!}`, this macro need not be used.+ `{!create-bot-construct-url.md!}`, this macro need not be used.- `{!append-topic.md!}` macro - Recommends appending `&topic=my_topic` to a URLto supply a custom topic for webhook notification messages. Supplying a customtopic is optional for most Zulip integrations. If you use- `{!create-bot-construct-url-indented.md!}`, this macro need not be used.+ `{!create-bot-construct-url.md!}`, this macro need not be used.- `{!congrats.md!}` macro - Inserts congratulatory lines signifying thesuccessful setup of a given integration. This macro is usually used at@@ -127,7 +127,7 @@ Here are a few common macros used to document Zulip's integrations:see the last paragraph of **Step 2** in[the docs for Zulip's GitHub integration][github-integration].-- `{!webhook-url.md!}` - Used internally by `{!create-bot-construct-url-indented.md!}`+- `{!webhook-url.md!}` - Used internally by `{!create-bot-construct-url.md!}`to generate the webhook URL.- `{!zulip-config.md!}` - Used internally by `{!change-zulip-config-file.md!}`@@ -202,7 +202,7 @@ A typical doc will then have the following steps.##### "Create the bot" step-- Typically, use the `create-bot-construct-url-indented` macro.+- Typically, use the `create-bot-construct-url` macro.- [Existing macros](#markdown-macros) should be used for this if they exist, but if the macrodefaults don’t work, it may make sense to write something custom for theintegration in question. This step is mandatory for all integrations.diff --git a/pyproject.toml b/pyproject.tomlindex 2e41647daf8..1136ae6d870 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -69,7 +69,6 @@ module = ["gitlint.*","jsonref.*","ldap.*",- "markdown_include.*","moto.*", # https://github.com/spulec/moto/issues/4944"onelogin.*","openapi_core.*",diff --git a/requirements/common.in b/requirements/common.inindex 7f8f0243287..c0d72283e21 100644--- a/requirements/common.in+++ b/requirements/common.in@@ -61,9 +61,6 @@ premailer# Needed for JWT-based authPyJWT-# Needed for including other Markdown files for user docs-markdown-include-# Needed to access RabbitMQpikadiff --git a/requirements/dev.txt b/requirements/dev.txtindex 5e31a6898f5..6835c6e691d 100644--- a/requirements/dev.txt+++ b/requirements/dev.txt@@ -902,11 +902,6 @@ lxml-stubs==0.4.0 \markdown==3.3.7 \--hash=sha256:cbb516f16218e643d8e0a95b309f77eb118cb138d39a4f27851e6a63581db874 \--hash=sha256:f5da449a6e1c989a4cea2631aa8ee67caa5a2ef855d551c88f9e309f4634c621- # via- # -r requirements/common.in- # markdown-include-markdown-include==0.6.0 \- --hash=sha256:6f5d680e36f7780c7f0f61dca53ca581bd50d1b56137ddcd6353efafa0c3e4a2# via -r requirements/common.inmarkdown-it-py==2.1.0 \--hash=sha256:93de681e5c021a432c63147656fe21790bc01231e0cd2da73626f1aa3ac0fe27 \diff --git a/requirements/prod.txt b/requirements/prod.txtindex de4550b621f..e4b4d6cc586 100644--- a/requirements/prod.txt+++ b/requirements/prod.txt@@ -584,11 +584,6 @@ lxml==4.6.5 \markdown==3.3.7 \--hash=sha256:cbb516f16218e643d8e0a95b309f77eb118cb138d39a4f27851e6a63581db874 \--hash=sha256:f5da449a6e1c989a4cea2631aa8ee67caa5a2ef855d551c88f9e309f4634c621- # via- # -r requirements/common.in- # markdown-include-markdown-include==0.6.0 \- --hash=sha256:6f5d680e36f7780c7f0f61dca53ca581bd50d1b56137ddcd6353efafa0c3e4a2# via -r requirements/common.inmarkupsafe==2.1.1 \--hash=sha256:0212a68688482dc52b2d45013df70d169f542b7394fc744c02a57374a4207003 \diff --git a/templates/zerver/help/include/change-zulip-config-file-indented.md b/templates/zerver/help/include/change-zulip-config-file-indented.mddeleted file mode 100644index 7787187b067..00000000000--- a/templates/zerver/help/include/change-zulip-config-file-indented.md+++ /dev/null@@ -1,9 +0,0 @@- Open `/usr/local/share/zulip/integrations/{{ integration_name }}/zulip_{{ integration_name }}_config.py`- with your favorite editor, and change the following lines to specify the- email address and API key for your {{ integration_display_name }} bot:-- ```- ZULIP_USER = "{{ integration_name }}[email protected]"- ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"- ZULIP_SITE = "{{ api_url }}"- ```diff --git a/templates/zerver/help/include/change-zulip-config-file.md b/templates/zerver/help/include/change-zulip-config-file.mdindex 41fa6681b62..c3e6b46bd2f 100644--- a/templates/zerver/help/include/change-zulip-config-file.md+++ b/templates/zerver/help/include/change-zulip-config-file.md@@ -1,9 +1,9 @@-On your {{ settings_html|safe }}, create a bot for-{{ integration_display_name }}.--Next, open-`/usr/local/share/zulip/integrations/{{ integration_name }}/zulip_{{ integration_name }}_config.py`+Open `/usr/local/share/zulip/integrations/{{ integration_name }}/zulip_{{ integration_name }}_config.py`with your favorite editor, and change the following lines to specify theemail address and API key for your {{ integration_display_name }} bot:-{!zulip-config.md!}+```+ZULIP_USER = "{{ integration_name }}[email protected]"+ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"+ZULIP_SITE = "{{ api_url }}"+```diff --git a/templates/zerver/help/include/create-a-bot-indented.md b/templates/zerver/help/include/create-a-bot-indented.mddeleted file mode 100644index 1bf49056c3d..00000000000--- a/templates/zerver/help/include/create-a-bot-indented.md+++ /dev/null@@ -1,5 +0,0 @@- [Create a bot](/help/add-a-bot-or-integration) for- {{ integration_display_name }}. Make sure that you select- **Incoming webhook** as the **Bot type**:-- diff --git a/templates/zerver/help/include/create-bot-construct-url-indented.md b/templates/zerver/help/include/create-bot-construct-url-indented.mddeleted file mode 100644index 9d7a76adf81..00000000000--- a/templates/zerver/help/include/create-bot-construct-url-indented.md+++ /dev/null@@ -1,15 +0,0 @@- {!create-a-bot-indented.md!}-- Construct the URL for the {{ integration_display_name }}- bot using the bot's API key and the desired stream name:-- {!webhook-url.md!}-- Modify the parameters of the URL above, where `api_key` is the API key- of your Zulip bot, and `stream` is the [URL-encoded](https://www.urlencoder.org/)- stream name you want the notifications sent to. If you do not specify a- `stream`, the bot will send notifications via PMs to the creator of the bot.-- If you'd like this integration to always send to a specific topic,- just include the (URL-encoded) topic as an additional parameter- (E.g. for `your topic`, append `&topic=your%20topic` to the URL).diff --git a/templates/zerver/help/include/git-webhook-url-with-branches-indented.md b/templates/zerver/help/include/git-webhook-url-with-branches-indented.mddeleted file mode 100644index 52816be3317..00000000000--- a/templates/zerver/help/include/git-webhook-url-with-branches-indented.md+++ /dev/null@@ -1,4 +0,0 @@- You can also limit the branches you receive notifications for by- specifying them in a comma-separated list at the end of the URL,- like so:- `{{ api_url }}{{ integration_url }}?api_key=abcdefgh&stream={{ recommended_stream_name }}&branches=main,development`diff --git a/templates/zerver/help/include/git-webhook-url-with-branches.md b/templates/zerver/help/include/git-webhook-url-with-branches.mdindex a5d5bc41de0..fa31c5afec7 100644--- a/templates/zerver/help/include/git-webhook-url-with-branches.md+++ b/templates/zerver/help/include/git-webhook-url-with-branches.md@@ -1,5 +1,4 @@You can also limit the branches you receive notifications for byspecifying them in a comma-separated list at the end of the URL,like so:-`{{ api_url }}{{ integration_url }}?api_key=abcdefgh&stream={{ recommended_stream_name }}&branches=main,development`diff --git a/templates/zerver/help/include/webhook-url-with-bot-email-indented.md b/templates/zerver/help/include/webhook-url-with-bot-email-indented.mddeleted file mode 100644index 9eb7109cd6b..00000000000--- a/templates/zerver/help/include/webhook-url-with-bot-email-indented.md+++ /dev/null@@ -1,9 +0,0 @@- Construct the URL for the {{ integration_display_name }}- bot using the bot's API key and email address:-- `{{ external_uri_scheme }}bot_email:bot_api_key@{{ api_url_scheme_relative }}{{ integration_url }}`-- Modify the parameters of the URL above, where `bot_email` is- the bot's URL-encoded email address and `bot_api_key` is the- bot's API key. To URL-encode the email address, you just need- to replace `@` in the bot's email address with `%40`.diff --git a/templates/zerver/help/include/webhook-url-with-bot-email.md b/templates/zerver/help/include/webhook-url-with-bot-email.mdindex 894b3c22f98..689476fa9de 100644--- a/templates/zerver/help/include/webhook-url-with-bot-email.md+++ b/templates/zerver/help/include/webhook-url-with-bot-email.md@@ -1,7 +1,9 @@-In the URL field, enter:+Construct the URL for the {{ integration_display_name }}+bot using the bot's API key and email address:`{{ external_uri_scheme }}bot_email:bot_api_key@{{ api_url_scheme_relative }}{{ integration_url }}`-Replace `bot_email` and `bot_api_key` above with the URL-encoded email-address and API key of the bot. To URL-encode the email address, you-just need to replace `@` in the bot's email address with `%40`.+Modify the parameters of the URL above, where `bot_email` is+the bot's URL-encoded email address and `bot_api_key` is the+bot's API key. To URL-encode the email address, you just need+to replace `@` in the bot's email address with `%40`.diff --git a/templates/zerver/integrations/capistrano.md b/templates/zerver/integrations/capistrano.mdindex f17feba0645..158118a19fb 100644--- a/templates/zerver/integrations/capistrano.md+++ b/templates/zerver/integrations/capistrano.md@@ -1,6 +1,6 @@Get Zulip notifications for your Capistrano deploys!-1. {!create-a-bot-indented.md!}+1. {!create-a-bot.md!}1. {!download-python-bindings.md!}diff --git a/templates/zerver/integrations/codebase.md b/templates/zerver/integrations/codebase.mdindex 4f64e592a6e..75f6bf384dd 100644--- a/templates/zerver/integrations/codebase.md+++ b/templates/zerver/integrations/codebase.md@@ -5,11 +5,11 @@ Get Codebase notifications in Zulip!updates. We recommend naming the streams `codebase` and `tickets`, respectively.After creating these streams, make sure to subscribe all interested parties.-1. {!create-a-bot-indented.md!}+1. {!create-a-bot.md!}1. {!download-python-bindings.md!}-1. {!change-zulip-config-file-indented.md!}+1. {!change-zulip-config-file.md!}You may also need to update the value of `ZULIP_TICKETS_STREAM_NAME` and`ZULIP_COMMITS_STREAM_NAME`.diff --git a/templates/zerver/integrations/git.md b/templates/zerver/integrations/git.mdindex c808b903ba1..ba6117ee574 100644--- a/templates/zerver/integrations/git.md+++ b/templates/zerver/integrations/git.md@@ -1,12 +1,12 @@Get Zulip notifications for your Git repositories!-1. {!create-a-bot-indented.md!}+1. {!create-a-bot.md!}1. {!download-python-bindings.md!}1. {!create-stream.md!}-1. {!change-zulip-config-file-indented.md!}+1. {!change-zulip-config-file.md!}You may also need to change the value of `STREAM_NAME`.diff --git a/templates/zerver/integrations/jenkins.md b/templates/zerver/integrations/jenkins.mdindex 9ef6a71a96c..98f8dda983e 100644--- a/templates/zerver/integrations/jenkins.md+++ b/templates/zerver/integrations/jenkins.md@@ -1,6 +1,6 @@1. {!create-stream.md!}-1. {!create-a-bot-indented.md!}+1. {!create-a-bot.md!}1. Install the "Zulip" plugin by going to**Manage Jenkins > Manage Plugins > Available**,diff --git a/templates/zerver/integrations/openshift.md b/templates/zerver/integrations/openshift.mdindex bc5fd4e9845..0c530e9446f 100644--- a/templates/zerver/integrations/openshift.md+++ b/templates/zerver/integrations/openshift.md@@ -16,7 +16,7 @@ in an OpenShift instance.-1. {!change-zulip-config-file-indented.md!}+1. {!change-zulip-config-file.md!}1. You can also specify which pushes will result in notifications and towhat stream the notifications will be sent by modifying thediff --git a/templates/zerver/integrations/perforce.md b/templates/zerver/integrations/perforce.mdindex 57830adb742..c7411396003 100644--- a/templates/zerver/integrations/perforce.md+++ b/templates/zerver/integrations/perforce.md@@ -8,7 +8,7 @@ that fires once a changelist is submitted and committed.1. The Perforce trigger will be installed to a location like`/usr/local/share/zulip/integrations/perforce`.-1. {!change-zulip-config-file-indented.md!}+1. {!change-zulip-config-file.md!}1. If you have a P4Web viewer set up, you may change `P4_WEB`to point at the base URL of the server. If this is configured,diff --git a/templates/zerver/integrations/svn.md b/templates/zerver/integrations/svn.mdindex 9260831f37e..6765c410de2 100644--- a/templates/zerver/integrations/svn.md+++ b/templates/zerver/integrations/svn.md@@ -11,7 +11,7 @@ post-commit hook. To do this:[1]: http://pysvn.tigris.org/project_downloads.html-1. {!change-zulip-config-file-indented.md!}+1. {!change-zulip-config-file.md!}1. Copy `integrations/svn/zulip_svn_config.py` and`integrations/svn/post-commit` from the API bindings directorydiff --git a/templates/zerver/integrations/trac.md b/templates/zerver/integrations/trac.mdindex d8dbd79be1d..791c5d79cb7 100644--- a/templates/zerver/integrations/trac.md+++ b/templates/zerver/integrations/trac.md@@ -2,7 +2,7 @@1. {!download-python-bindings.md!}-1. {!change-zulip-config-file-indented.md!}+1. {!change-zulip-config-file.md!}1. Also, change the following lines:diff --git a/version.py b/version.pyindex 9aeddd7bb70..0acbe47ab90 100644--- a/version.py+++ b/version.py@@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 132# historical commits sharing the same major version, in which case a# minor version bump suffices.-PROVISION_VERSION = "191.1"+PROVISION_VERSION = "192.0"diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.pyindex 89a1832cd62..97f9ae2efca 100644--- a/zerver/lib/markdown/__init__.py+++ b/zerver/lib/markdown/__init__.py@@ -2191,6 +2191,7 @@ class Markdown(markdown.Markdown):parser.blockprocessors.register(OListProcessor(parser), "olist", 65)parser.blockprocessors.register(UListProcessor(parser), "ulist", 60)parser.blockprocessors.register(BlockQuoteProcessor(parser), "quote", 55)+ # We get priority 51 from our 'include' extensionparser.blockprocessors.register(markdown.blockprocessors.ParagraphProcessor(parser), "paragraph", 50)diff --git a/zerver/lib/markdown/include.py b/zerver/lib/markdown/include.pyindex 77bcb058b63..38df69e1b4f 100644--- a/zerver/lib/markdown/include.py+++ b/zerver/lib/markdown/include.py@@ -1,70 +1,54 @@import osimport re-from typing import Any, List+from typing import List, Match+from xml.etree.ElementTree import Element-import markdown-from markdown_include.include import IncludePreprocessor, MarkdownInclude+from markdown import Extension, Markdown+from markdown.blockparser import BlockParser+from markdown.blockprocessors import BlockProcessorfrom zerver.lib.exceptions import InvalidMarkdownIncludeStatement-from zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES+from zerver.lib.markdown.priorities import BLOCK_PROCESSOR_PRIORITIES-INC_SYNTAX = re.compile(r"\{!\s*(.+?)\s*!\}")+class IncludeExtension(Extension):+ def __init__(self, base_path: str) -> None:+ super().__init__()+ self.base_path = base_path-class MarkdownIncludeCustom(MarkdownInclude):- def extendMarkdown(self, md: markdown.Markdown) -> None:- md.preprocessors.register(- IncludeCustomPreprocessor(md, self.getConfigs()),- "include_wrapper",- PREPROCESSOR_PRIORITES["include"],+ def extendMarkdown(self, md: Markdown) -> None:+ md.parser.blockprocessors.register(+ IncludeBlockProcessor(md.parser, self.base_path),+ "include",+ BLOCK_PROCESSOR_PRIORITIES["include"],)-class IncludeCustomPreprocessor(IncludePreprocessor):- """- This is a custom implementation of the markdown_include- extension that checks for include statements and if the included- macro file does not exist or can't be opened, raises a custom- JsonableError exception. The rest of the functionality is identical- to the original markdown_include extension.- """+class IncludeBlockProcessor(BlockProcessor):+ RE = re.compile(r"^ {,3}\{!([^!]+)!\} *$", re.M)- def run(self, lines: List[str]) -> List[str]:- done = False- while not done:- for line in lines:- loc = lines.index(line)- m = INC_SYNTAX.search(line)+ def __init__(self, parser: BlockParser, base_path: str) -> None:+ super().__init__(parser)+ self.base_path = base_path- if m:- filename = m.group(1)- filename = os.path.expanduser(filename)- if not os.path.isabs(filename):- filename = os.path.normpath(- os.path.join(self.base_path, filename),- )- try:- with open(filename, encoding=self.encoding) as r:- text = r.readlines()- except Exception as e:- print(f"Warning: could not find file {filename}. Error: {e}")- lines[loc] = INC_SYNTAX.sub("", line)- raise InvalidMarkdownIncludeStatement(m.group(0).strip())+ def test(self, parent: Element, block: str) -> bool: # type: ignore[override] # https://github.com/python/typeshed/pull/8166+ return bool(self.RE.search(block))- line_split = INC_SYNTAX.split(line)- if len(text) == 0:- text.append("")- for i in range(len(text)):- text[i] = text[i].rstrip("\r\n")- text[0] = line_split[0] + text[0]- text[-1] = text[-1] + line_split[2]- lines = lines[:loc] + text + lines[loc + 1 :]- break- else:- done = True+ def expand_include(self, m: Match[str]) -> str:+ try:+ with open(os.path.normpath(os.path.join(self.base_path, m[1]))) as f:+ lines = f.read().splitlines()+ except OSError as e:+ raise InvalidMarkdownIncludeStatement(m[0].strip()) from e- return lines+ for prep in self.parser.md.preprocessors:+ lines = prep.run(lines)+ return "\n".join(lines)-def makeExtension(*args: Any, **kwargs: str) -> MarkdownIncludeCustom:- return MarkdownIncludeCustom(kwargs)+ def run(self, parent: Element, blocks: List[str]) -> None:+ blocks[:1] = self.RE.sub(self.expand_include, blocks[0]).split("\n\n")+++def makeExtension(base_path: str) -> IncludeExtension:+ return IncludeExtension(base_path=base_path)diff --git a/zerver/lib/markdown/priorities.py b/zerver/lib/markdown/priorities.pyindex f0d01b54f1c..1e32353efdf 100644--- a/zerver/lib/markdown/priorities.py+++ b/zerver/lib/markdown/priorities.py@@ -10,8 +10,6 @@ PREPROCESSOR_PRIORITES = {"generate_code_example": 525,"generate_return_values": 510,"generate_api_arguments": 505,- "include": 500,- # "include_wrapper": 500,"help_relative_links": 475,"setting": 450,# "normalize_whitespace": 30,@@ -21,3 +19,7 @@ PREPROCESSOR_PRIORITES = {"nested_code_blocks": -500,"emoticon_translations": -505,}++BLOCK_PROCESSOR_PRIORITIES = {+ "include": 51,+}diff --git a/zerver/tests/test_templates.py b/zerver/tests/test_templates.pyindex 0fa61f41b34..400a31e58d6 100644--- a/zerver/tests/test_templates.py+++ b/zerver/tests/test_templates.py@@ -1,5 +1,3 @@-from unittest.mock import MagicMock, call, patch-from django.template.loader import get_templatefrom zerver.lib.exceptions import InvalidMarkdownIncludeStatement@@ -118,8 +116,7 @@ footer)self.assertEqual(content_sans_whitespace, expected)- @patch("builtins.print")- def test_custom_markdown_include_extension(self, mock_print: MagicMock) -> None:+ def test_custom_markdown_include_extension(self) -> None:template = get_template("tests/test_markdown.html")context = {"markdown_test_file": "zerver/tests/markdown/test_custom_include_extension.md",@@ -129,14 +126,6 @@ footerInvalidMarkdownIncludeStatement, "Invalid Markdown include statement"):template.render(context)- self.assertEqual(- mock_print.mock_calls,- [- call(- "Warning: could not find file templates/zerver/help/include/nonexistent-macro.md. Error: [Errno 2] No such file or directory: 'templates/zerver/help/include/nonexistent-macro.md'"- )- ],- )def test_custom_markdown_include_extension_empty_macro(self) -> None:template = get_template("tests/test_markdown.html")diff --git a/zerver/webhooks/airbrake/doc.md b/zerver/webhooks/airbrake/doc.mdindex 3f1230752ce..8a80b8a755f 100644--- a/zerver/webhooks/airbrake/doc.md+++ b/zerver/webhooks/airbrake/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Airbrake bug tracker!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your project's settings on the Airbrake site. Click on the**Integration** section, and select **Webhook**.diff --git a/zerver/webhooks/alertmanager/doc.md b/zerver/webhooks/alertmanager/doc.mdindex e278497666a..038893547bc 100644--- a/zerver/webhooks/alertmanager/doc.md+++ b/zerver/webhooks/alertmanager/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications from Alertmanager!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}Additionally, you may specify URL parameters named `name` and `desc` to specify which labelsor annotations will be used to construct the alert message. This allows you to use arbitrary labelsdiff --git a/zerver/webhooks/ansibletower/doc.md b/zerver/webhooks/ansibletower/doc.mdindex bdba3fb007d..aa86b7b94b6 100644--- a/zerver/webhooks/ansibletower/doc.md+++ b/zerver/webhooks/ansibletower/doc.md@@ -2,7 +2,7 @@ Get Ansible Tower notifications in Zulip!1. {!create-stream.md!}- 1. {!create-bot-construct-url-indented.md!}+ 1. {!create-bot-construct-url.md!}1. Go to your Ansible Tower or AWX Admin Portal. Click **Notifications** onthe left sidebar, and click **Add**.diff --git a/zerver/webhooks/appfollow/doc.md b/zerver/webhooks/appfollow/doc.mdindex 4a833e501d4..fc28b070fb6 100644--- a/zerver/webhooks/appfollow/doc.md+++ b/zerver/webhooks/appfollow/doc.md@@ -3,7 +3,7 @@ using the Zulip AppFollow integration!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. In AppFollow, click on **Integrations** on the left sidebar, and click **Add new integration**.Click on your app under **Tracked apps**.diff --git a/zerver/webhooks/appveyor/doc.md b/zerver/webhooks/appveyor/doc.mdindex bea4234db6c..63af0c29d01 100644--- a/zerver/webhooks/appveyor/doc.md+++ b/zerver/webhooks/appveyor/doc.md@@ -2,7 +2,7 @@ Receive AppVeyor notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your AppVeyor Project Settings, and click **Notifications**.Click **Add notification** and select **Webhook**.diff --git a/zerver/webhooks/basecamp/doc.md b/zerver/webhooks/basecamp/doc.mdindex 7d5863d657c..44f5654d749 100644--- a/zerver/webhooks/basecamp/doc.md+++ b/zerver/webhooks/basecamp/doc.md@@ -3,7 +3,7 @@ events in Basecamp.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your project on Basecamp. From the **Settings** menu inthe top right corner, choose **Set up webhooks**. Click ondiff --git a/zerver/webhooks/beanstalk/doc.md b/zerver/webhooks/beanstalk/doc.mdindex 91e8ef6bb87..b4a0dfd1b93 100644--- a/zerver/webhooks/beanstalk/doc.md+++ b/zerver/webhooks/beanstalk/doc.md@@ -2,9 +2,9 @@ Zulip supports both SVN and Git notifications from Beanstalk.1. {!create-stream.md!}-1. {!create-a-bot-indented.md!}+1. {!create-a-bot.md!}- {!webhook-url-with-bot-email-indented.md!}+ {!webhook-url-with-bot-email.md!}{!git-append-branches.md!}1. On your repository's webpage, click on the **Settings**diff --git a/zerver/webhooks/beeminder/doc.md b/zerver/webhooks/beeminder/doc.mdindex 97b32196d14..5bf5883858a 100644--- a/zerver/webhooks/beeminder/doc.md+++ b/zerver/webhooks/beeminder/doc.md@@ -3,7 +3,7 @@ to derail from your goal!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Beeminder **Reminders** settings.diff --git a/zerver/webhooks/bitbucket2/doc.md b/zerver/webhooks/bitbucket2/doc.mdindex c550416dac1..32e6e83fdb2 100644--- a/zerver/webhooks/bitbucket2/doc.md+++ b/zerver/webhooks/bitbucket2/doc.md@@ -8,8 +8,8 @@ Bitbucket Server click [here](./bitbucket3).1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}- {!git-webhook-url-with-branches-indented.md!}+1. {!create-bot-construct-url.md!}+ {!git-webhook-url-with-branches.md!}1. On your repository's web page, click on **Settings**. Select**Webhooks**, and click **Add webhook**.diff --git a/zerver/webhooks/bitbucket3/doc.md b/zerver/webhooks/bitbucket3/doc.mdindex 008107e0360..7e33086823d 100644--- a/zerver/webhooks/bitbucket3/doc.md+++ b/zerver/webhooks/bitbucket3/doc.md@@ -8,8 +8,8 @@ Bitbucket Cloud (SAAS service) click [here](./bitbucket2).1. {!create-stream.md!}-2. {!create-bot-construct-url-indented.md!}- {!git-webhook-url-with-branches-indented.md!}+2. {!create-bot-construct-url.md!}+ {!git-webhook-url-with-branches.md!}3. On your repository's web page, click on **Settings**. Select**Webhooks**, and click **Add webhook**.diff --git a/zerver/webhooks/buildbot/doc.md b/zerver/webhooks/buildbot/doc.mdindex c5e39b26bf2..67af3be505e 100644--- a/zerver/webhooks/buildbot/doc.md+++ b/zerver/webhooks/buildbot/doc.md@@ -6,7 +6,7 @@ Get Zulip notifications for your Buildbot builds!1. {!create-stream.md!}-1. {!create-a-bot-indented.md!}+1. {!create-a-bot.md!}1. Edit the Buildbot configuration file to add a new Zulip reporter([or follow the steps listed here][1]):diff --git a/zerver/webhooks/canarytoken/doc.md b/zerver/webhooks/canarytoken/doc.mdindex a2b68852c43..ce2c167e427 100644--- a/zerver/webhooks/canarytoken/doc.md+++ b/zerver/webhooks/canarytoken/doc.md@@ -4,7 +4,7 @@ See your Thinkst Canarytoken alerts in Zulip! This integration works with Canary1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to [canarytokens.org][canarytokens], and select the type ofwebhook that you want to create and add a reminder note.diff --git a/zerver/webhooks/circleci/doc.md b/zerver/webhooks/circleci/doc.mdindex 32edef21e38..3e2b6f5b3e1 100644--- a/zerver/webhooks/circleci/doc.md+++ b/zerver/webhooks/circleci/doc.md@@ -3,7 +3,7 @@ your build statuses.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Add the following to the bottom of your `circle.yml` file:diff --git a/zerver/webhooks/clubhouse/doc.md b/zerver/webhooks/clubhouse/doc.mdindex 77efa0bc790..2e809adf6ec 100644--- a/zerver/webhooks/clubhouse/doc.md+++ b/zerver/webhooks/clubhouse/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Clubhouse Stories and Epics!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Clubhouse Dashboard, and click on the settings icon inthe top-right corner. Click on **Integrations**, and select **Webhooks**.diff --git a/zerver/webhooks/codeship/doc.md b/zerver/webhooks/codeship/doc.mdindex 52866760f2a..7d12dd987c4 100644--- a/zerver/webhooks/codeship/doc.md+++ b/zerver/webhooks/codeship/doc.md@@ -3,7 +3,7 @@ your build statuses.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your project's webpage, click on **Project Settings** inthe top right corner. Click on the **Notifications** tab, and click ondiff --git a/zerver/webhooks/crashlytics/doc.md b/zerver/webhooks/crashlytics/doc.mdindex 93f80a4509a..52a96f134a3 100644--- a/zerver/webhooks/crashlytics/doc.md+++ b/zerver/webhooks/crashlytics/doc.md@@ -3,7 +3,7 @@ about Crashlytics issues.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Select the app you'd like to be notified about in your[Crashlytics settings panel](https://fabric.io/settings/apps).diff --git a/zerver/webhooks/delighted/doc.md b/zerver/webhooks/delighted/doc.mdindex 938c4b21db0..2c32b859485 100644--- a/zerver/webhooks/delighted/doc.md+++ b/zerver/webhooks/delighted/doc.md@@ -3,7 +3,7 @@ about updates in feedback responses organized by Delighted.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Delighted dashboard, click on **Settings** in thetop-right corner. Click on **Integrations**. Scroll downdiff --git a/zerver/webhooks/dropbox/doc.md b/zerver/webhooks/dropbox/doc.mdindex 0a2a6aa223f..c72c265cf95 100644--- a/zerver/webhooks/dropbox/doc.md+++ b/zerver/webhooks/dropbox/doc.md@@ -2,7 +2,7 @@ Get Dropbox notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your [Dropbox apps page](https://www.dropbox.com/developers/apps).Click on **Create app** near the top-right corner, and follow the on-screendiff --git a/zerver/webhooks/errbit/doc.md b/zerver/webhooks/errbit/doc.mdindex a5576f63310..22af9d150c6 100644--- a/zerver/webhooks/errbit/doc.md+++ b/zerver/webhooks/errbit/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for the Errbit error tracker!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your project's settings on the Errbit site. Click on the**Edit** button for your Errbit app, and select **Webhook**.diff --git a/zerver/webhooks/flock/doc.md b/zerver/webhooks/flock/doc.mdindex 7277c099f07..e2ca54016ef 100644--- a/zerver/webhooks/flock/doc.md+++ b/zerver/webhooks/flock/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications from your Flock channels.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Click on **Apps** in the bottom-right corner.Click on **Admin Panel**, and click on **Webhooks**.diff --git a/zerver/webhooks/freshdesk/doc.md b/zerver/webhooks/freshdesk/doc.mdindex a66aca64339..cc2134db0fa 100644--- a/zerver/webhooks/freshdesk/doc.md+++ b/zerver/webhooks/freshdesk/doc.md@@ -3,7 +3,7 @@ integration!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}### Add notifications for new Freshdesk ticketsdiff --git a/zerver/webhooks/freshping/doc.md b/zerver/webhooks/freshping/doc.mdindex 57f0305c8ea..461d8f1cf7c 100644--- a/zerver/webhooks/freshping/doc.md+++ b/zerver/webhooks/freshping/doc.md@@ -2,7 +2,7 @@ Receive Freshping notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your **Freshping** dashboard and click **Settings**.Click **Integrations** and then click **Create Integration**diff --git a/zerver/webhooks/freshstatus/doc.md b/zerver/webhooks/freshstatus/doc.mdindex 54758493f14..6d1b503165f 100644--- a/zerver/webhooks/freshstatus/doc.md+++ b/zerver/webhooks/freshstatus/doc.md@@ -2,7 +2,7 @@ Receive Freshstatus notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Freshstatus dashboard, click **Settings** and click **Integrations**.Go to **Webhooks** and click **Manage**. Click **New Webhook**diff --git a/zerver/webhooks/front/doc.md b/zerver/webhooks/front/doc.mdindex 6a2989a84ef..58f26e5b3a3 100644--- a/zerver/webhooks/front/doc.md+++ b/zerver/webhooks/front/doc.md@@ -4,7 +4,7 @@ to receive Front notifications without leaving Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to the **Settings** page of your Front organization. Click on the**Integrations** tab, and enable the **Webhooks** integration. Click ondiff --git a/zerver/webhooks/gci/doc.md b/zerver/webhooks/gci/doc.mdindex bc620326173..e14bccaf321 100644--- a/zerver/webhooks/gci/doc.md+++ b/zerver/webhooks/gci/doc.md@@ -4,7 +4,7 @@ you can now get Task notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Send an email to `[email protected]` asking them to enable webhooksfor your organization. They'll need the name of your organization, anddiff --git a/zerver/webhooks/gitea/doc.md b/zerver/webhooks/gitea/doc.mdindex 468de1a7c5f..f780b1e229e 100644--- a/zerver/webhooks/gitea/doc.md+++ b/zerver/webhooks/gitea/doc.md@@ -2,9 +2,9 @@ Receive Gitea notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}- {!git-webhook-url-with-branches-indented.md!}+ {!git-webhook-url-with-branches.md!}1. Go to your repository on Gitea and click on **Settings**. Select**Webhooks** on the left sidebar, and click **Add Webhook**.diff --git a/zerver/webhooks/github/doc.md b/zerver/webhooks/github/doc.mdindex 82d20c45a3f..2a07d0b16dc 100644--- a/zerver/webhooks/github/doc.md+++ b/zerver/webhooks/github/doc.md@@ -2,9 +2,9 @@ Get GitHub notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}- {!git-webhook-url-with-branches-indented.md!}+ {!git-webhook-url-with-branches.md!}1. Go to your repository on GitHub and click on the **Settings** tab.Select **Webhooks**. Click on **Add webhook**. GitHub may promptdiff --git a/zerver/webhooks/gitlab/doc.md b/zerver/webhooks/gitlab/doc.mdindex 1162257c780..5de9ddd5d8b 100644--- a/zerver/webhooks/gitlab/doc.md+++ b/zerver/webhooks/gitlab/doc.md@@ -2,13 +2,13 @@ Receive GitLab notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}By default, the Zulip topics for merge requests will contain thetitle of the GitLab merge request. You can change the topic format tojust contain the merge request ID by adding`&use_merge_request_title=false` at the end of the URL.- {!git-webhook-url-with-branches-indented.md!}+ {!git-webhook-url-with-branches.md!}1. Go to your repository on GitLab and click **Settings** on the leftsidebar. Click on **Integrations**.diff --git a/zerver/webhooks/gocd/doc.md b/zerver/webhooks/gocd/doc.mdindex 97eba14bc3b..b92de95776d 100644--- a/zerver/webhooks/gocd/doc.md+++ b/zerver/webhooks/gocd/doc.md@@ -3,7 +3,7 @@ your build statuses.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Add the following to your `Config.XML` file.diff --git a/zerver/webhooks/gogs/doc.md b/zerver/webhooks/gogs/doc.mdindex 4c2a82c9467..b2802232110 100644--- a/zerver/webhooks/gogs/doc.md+++ b/zerver/webhooks/gogs/doc.md@@ -2,9 +2,9 @@ Receive Gogs notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}- {!git-webhook-url-with-branches-indented.md!}+ {!git-webhook-url-with-branches.md!}1. Go to your repository on Gogs and click on **Settings**. Select**Webhooks** on the left sidebar, and click **Add Webhook**.diff --git a/zerver/webhooks/gosquared/doc.md b/zerver/webhooks/gosquared/doc.mdindex f88425b14a8..8951d6a6205 100644--- a/zerver/webhooks/gosquared/doc.md+++ b/zerver/webhooks/gosquared/doc.md@@ -2,7 +2,7 @@ Receive GoSquared notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your project's **Settings** and click on **Services**.Scroll down and next to **Webhook**, click on **Connect**. Clickdiff --git a/zerver/webhooks/grafana/doc.md b/zerver/webhooks/grafana/doc.mdindex 809b2260202..fe76b5cc940 100644--- a/zerver/webhooks/grafana/doc.md+++ b/zerver/webhooks/grafana/doc.md@@ -2,7 +2,7 @@ See your Grafana dashboard alerts in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. In Grafana, go to **Alerting**. Click on **Notification channels**.Configure **Edit Notification Channel** as appropriate for yourdiff --git a/zerver/webhooks/greenhouse/doc.md b/zerver/webhooks/greenhouse/doc.mdindex 0b519f3f790..fafeb0938d3 100644--- a/zerver/webhooks/greenhouse/doc.md+++ b/zerver/webhooks/greenhouse/doc.md@@ -2,7 +2,7 @@ Receive Greenhouse notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Greenhouse **Dashboard**, click on the**gear** (<i class="fa fa-cog"></i>) icon in the upper rightdiff --git a/zerver/webhooks/groove/doc.md b/zerver/webhooks/groove/doc.mdindex b5f90929536..cb994a4f820 100644--- a/zerver/webhooks/groove/doc.md+++ b/zerver/webhooks/groove/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Groove events!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Groove dashboard, click on **Settings**. Under **Company**,click on **API**. Open the **Add Webhook** dropdown and select andiff --git a/zerver/webhooks/harbor/doc.md b/zerver/webhooks/harbor/doc.mdindex 37930ce9b72..2eba2cba317 100644--- a/zerver/webhooks/harbor/doc.md+++ b/zerver/webhooks/harbor/doc.md@@ -4,7 +4,7 @@ Harbor's webhooks feature is available in version 1.9 and later.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Harbor **Projects** page. Open a project and click on the **Webhooks** tab.diff --git a/zerver/webhooks/hellosign/doc.md b/zerver/webhooks/hellosign/doc.mdindex 7e6ebca2a6c..92d7b1fa6dc 100644--- a/zerver/webhooks/hellosign/doc.md+++ b/zerver/webhooks/hellosign/doc.md@@ -2,7 +2,7 @@ Configuring the HelloSign integration is easy!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your HelloSign account **Settings**. Select **Integrations** andclick on **API**.diff --git a/zerver/webhooks/heroku/doc.md b/zerver/webhooks/heroku/doc.mdindex da2cb0f7bb1..d19abfa8cb6 100644--- a/zerver/webhooks/heroku/doc.md+++ b/zerver/webhooks/heroku/doc.md@@ -3,7 +3,7 @@ is pushed to Heroku using the Zulip Heroku plugin!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your project on Herokuand click the **Resources** tab. Add the **Deploy Hooks** add-on.diff --git a/zerver/webhooks/ifttt/doc.md b/zerver/webhooks/ifttt/doc.mdindex 358786a0e2b..ed92fa85f3e 100644--- a/zerver/webhooks/ifttt/doc.md+++ b/zerver/webhooks/ifttt/doc.md@@ -5,7 +5,7 @@ in Zulip.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Create an [IFTTT account](https://ifttt.com/join). Select the service you'd liketo receive notifications from as `this`. Select **Webhooks** asdiff --git a/zerver/webhooks/insping/doc.md b/zerver/webhooks/insping/doc.mdindex 8cdd8729fb5..63396ac615b 100644--- a/zerver/webhooks/insping/doc.md+++ b/zerver/webhooks/insping/doc.md@@ -4,7 +4,7 @@ a website or service is up and running or down.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Insping **Dashboard**, click on **Integrations**. Clickon **Create Webhook**.diff --git a/zerver/webhooks/intercom/doc.md b/zerver/webhooks/intercom/doc.mdindex 4a4c132aeae..6c24160193a 100644--- a/zerver/webhooks/intercom/doc.md+++ b/zerver/webhooks/intercom/doc.md@@ -2,7 +2,7 @@ Get Intercom notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Intercom account's **Settings** page and click on **Developers**on the left sidebar. Click on **Developer Hub** and click **New app**.diff --git a/zerver/webhooks/jira/doc.md b/zerver/webhooks/jira/doc.mdindex 92cbccc5ec6..6d7c9eeb73e 100644--- a/zerver/webhooks/jira/doc.md+++ b/zerver/webhooks/jira/doc.md@@ -5,7 +5,7 @@ These instructions apply to Atlassian Cloud's hosted Jira, and Jira Server versi1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Jira **Site administration** page. Click **Jira** on the left.On the left sidebar, scroll down, and under **Advanced**, click **WebHooks**.diff --git a/zerver/webhooks/jotform/doc.md b/zerver/webhooks/jotform/doc.mdindex 59ec2587b5c..1237149538b 100644--- a/zerver/webhooks/jotform/doc.md+++ b/zerver/webhooks/jotform/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Jotform responses!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}By default, the integration will use the form's title as the topic.1. In Jotform, go to **Form Builder**, and click on **Settings** tab.diff --git a/zerver/webhooks/json/doc.md b/zerver/webhooks/json/doc.mdindex 15295b8e9b0..1f403806453 100644--- a/zerver/webhooks/json/doc.md+++ b/zerver/webhooks/json/doc.md@@ -5,7 +5,7 @@ integration](/api/incoming-webhooks-overview).1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Configure your application to send the webhookpayload to the **URL** generated above.diff --git a/zerver/webhooks/librato/doc.md b/zerver/webhooks/librato/doc.mdindex ccfafff5a93..b2ee59f89f0 100644--- a/zerver/webhooks/librato/doc.md+++ b/zerver/webhooks/librato/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Librato/AppOptics alerts!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}By default, the integration will use the name of the alert.1. Go to your AppOptics/Librato homepage, and click on **Settings**diff --git a/zerver/webhooks/lidarr/doc.md b/zerver/webhooks/lidarr/doc.mdindex c3501a8f65a..81201053a10 100644--- a/zerver/webhooks/lidarr/doc.md+++ b/zerver/webhooks/lidarr/doc.md@@ -2,7 +2,7 @@ Receive Lidarr notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Lidarr dashboard. Click **Settings** andclick **Connect**. Click the **+** icon.diff --git a/zerver/webhooks/mention/doc.md b/zerver/webhooks/mention/doc.mdindex 8ec2b6270ad..3bde636a9af 100644--- a/zerver/webhooks/mention/doc.md+++ b/zerver/webhooks/mention/doc.md@@ -2,7 +2,7 @@ Get Mention notifications within Zulip via Zapier!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Mention feed, and click on your profile in the top-rightcorner. Select **Settings**. Click on **Integrations**. Select thediff --git a/zerver/webhooks/netlify/doc.md b/zerver/webhooks/netlify/doc.mdindex 421ea5a875c..b06443c0e58 100644--- a/zerver/webhooks/netlify/doc.md+++ b/zerver/webhooks/netlify/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Netlify deployments!1. {!create-stream.md!}-2. {!create-bot-construct-url-indented.md!}+2. {!create-bot-construct-url.md!}3. Go to your Netlify project, and click **Settings**. Click **Build & deploy**, and select **Deploy notifications**.Click **Add Notification**, and select **Outgoing webhook**.diff --git a/zerver/webhooks/newrelic/doc.md b/zerver/webhooks/newrelic/doc.mdindex b0d1cd0e407..26d22aa2b52 100644--- a/zerver/webhooks/newrelic/doc.md+++ b/zerver/webhooks/newrelic/doc.md@@ -2,7 +2,7 @@ New Relic can send messages to a Zulip stream for incidents.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On [New Relic](https://one.newrelic.com),select **Alerts & AI**.diff --git a/zerver/webhooks/opbeat/doc.md b/zerver/webhooks/opbeat/doc.mdindex dc4acfd959a..411bad16d5d 100644--- a/zerver/webhooks/opbeat/doc.md+++ b/zerver/webhooks/opbeat/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Opbeat events!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Opbeat **Organization Settings**.diff --git a/zerver/webhooks/opencollective/doc.md b/zerver/webhooks/opencollective/doc.mdindex 4e7bb052175..febd000bd0e 100644--- a/zerver/webhooks/opencollective/doc.md+++ b/zerver/webhooks/opencollective/doc.md@@ -3,7 +3,7 @@ when a new member signs-up on an **Open Collective** page.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to [Open Collective Website](https://opencollective.com/), findyour desired collective page, then go to *Settings* -> *Webhooks*, paste thediff --git a/zerver/webhooks/opsgenie/doc.md b/zerver/webhooks/opsgenie/doc.mdindex fbdb1d55e36..d5351798377 100644--- a/zerver/webhooks/opsgenie/doc.md+++ b/zerver/webhooks/opsgenie/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Opsgenie events!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to <https://app.opsgenie.com/integration>. Click on**Add New Integrations**, and select **Webhook**.diff --git a/zerver/webhooks/pagerduty/doc.md b/zerver/webhooks/pagerduty/doc.mdindex 130a29c0a8e..d8c5c5ae187 100644--- a/zerver/webhooks/pagerduty/doc.md+++ b/zerver/webhooks/pagerduty/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your PagerDuty services!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Open the **Integrations** tab, and click **Generic Webhooks (v3)**.diff --git a/zerver/webhooks/papertrail/doc.md b/zerver/webhooks/papertrail/doc.mdindex 8dee64f8d50..95840a9a369 100644--- a/zerver/webhooks/papertrail/doc.md+++ b/zerver/webhooks/papertrail/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Papertrail logs!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Papertrail dashboard, search for the logs you'd liketo set up alerts for, and click on **Save Search**. Provide adiff --git a/zerver/webhooks/pingdom/doc.md b/zerver/webhooks/pingdom/doc.mdindex fd534bca021..b49c8215a25 100644--- a/zerver/webhooks/pingdom/doc.md+++ b/zerver/webhooks/pingdom/doc.md@@ -3,7 +3,7 @@ uptime status changes from your Pingdom dashboard.1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Next, go to the following URL:diff --git a/zerver/webhooks/pivotal/doc.md b/zerver/webhooks/pivotal/doc.mdindex f8ea1bc07eb..a33b3ad4bc6 100644--- a/zerver/webhooks/pivotal/doc.md+++ b/zerver/webhooks/pivotal/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for the stories in your Pivotal Tracker project!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Pivotal project's **Settings** page, and click on **Webhooks**.diff --git a/zerver/webhooks/radarr/doc.md b/zerver/webhooks/radarr/doc.mdindex a0b68c3725c..cc7a7d73d99 100644--- a/zerver/webhooks/radarr/doc.md+++ b/zerver/webhooks/radarr/doc.md@@ -2,7 +2,7 @@ Receive Radarr notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Radarr dashboard. Click **Settings** and click **Connect**.Click the **+** icon.diff --git a/zerver/webhooks/raygun/doc.md b/zerver/webhooks/raygun/doc.mdindex 6055041ec93..9e220e25aee 100644--- a/zerver/webhooks/raygun/doc.md+++ b/zerver/webhooks/raygun/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Raygun events!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Raygun dashboard, and click on **Integrations**.Click on **Webhook**, and click on the **Setup** tab.diff --git a/zerver/webhooks/reviewboard/doc.md b/zerver/webhooks/reviewboard/doc.mdindex f45a2572b7d..41f5427384d 100644--- a/zerver/webhooks/reviewboard/doc.md+++ b/zerver/webhooks/reviewboard/doc.md@@ -2,7 +2,7 @@ Get Review Board notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Review Board **Dashboard**, click your team's name in the top-rightcorner, and click **Team administration**. Select **WebHooks** on thediff --git a/zerver/webhooks/semaphore/doc.md b/zerver/webhooks/semaphore/doc.mdindex f0fa1b975e4..d1eeb26ce0d 100644--- a/zerver/webhooks/semaphore/doc.md+++ b/zerver/webhooks/semaphore/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Semaphore builds!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. In Semaphore 2.0, under **Configuration** select **Notifications**. Click on**Create New Notification**. Add the the URL constructed above to the Webhookdiff --git a/zerver/webhooks/sentry/doc.md b/zerver/webhooks/sentry/doc.mdindex d3dee54ce25..459b745c958 100644--- a/zerver/webhooks/sentry/doc.md+++ b/zerver/webhooks/sentry/doc.md@@ -6,7 +6,7 @@ us](/help/contact-support) if a platform you care about is missing.1. {!create-stream.md!}-2. {!create-bot-construct-url-indented.md!}+2. {!create-bot-construct-url.md!}The default topic, if not set in the URL, will be the title of theissue or event.diff --git a/zerver/webhooks/slack/doc.md b/zerver/webhooks/slack/doc.mdindex 83352b8016f..1b1308e2846 100644--- a/zerver/webhooks/slack/doc.md+++ b/zerver/webhooks/slack/doc.md@@ -5,7 +5,7 @@ See also the [Slack-compatible webhook](/integrations/doc/slack_incoming).1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}If you'd like to map Slack channels to different topics within the samestream, add `&channels_map_to_topics=1` to the end of the URL. The `topic`diff --git a/zerver/webhooks/slack_incoming/doc.md b/zerver/webhooks/slack_incoming/doc.mdindex 92e7b7900c3..9f3d7edcc70 100644--- a/zerver/webhooks/slack_incoming/doc.md+++ b/zerver/webhooks/slack_incoming/doc.md@@ -4,7 +4,7 @@ API](https://api.slack.com/messaging/webhooks).1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Use your new webhook URL any place that you would use a Slack webhook.diff --git a/zerver/webhooks/solano/doc.md b/zerver/webhooks/solano/doc.mdindex bbafb9a0125..ad532be3ca3 100644--- a/zerver/webhooks/solano/doc.md+++ b/zerver/webhooks/solano/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Solano CI builds!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Solano CI **Organizations** page, and click on**Organization Settings**. Click on **Web Hooks**.diff --git a/zerver/webhooks/sonarqube/doc.md b/zerver/webhooks/sonarqube/doc.mdindex 63526ba2e55..07be76cf6ef 100644--- a/zerver/webhooks/sonarqube/doc.md+++ b/zerver/webhooks/sonarqube/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Sonarqube code analysis!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. To configure webhooks for a specific SonarQube project, go to the project and select **Administration**. Select**Webhooks** and click **Create**. **Note**: you can also configure webhooks globally by going to **Configurations** ->diff --git a/zerver/webhooks/sonarr/doc.md b/zerver/webhooks/sonarr/doc.mdindex 9648b7e69ae..ab344189ff2 100644--- a/zerver/webhooks/sonarr/doc.md+++ b/zerver/webhooks/sonarr/doc.md@@ -2,7 +2,7 @@ Receive Sonarr notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Sonarr dashboard. Click **Settings** and click **Connect**.Click the **+** icon.diff --git a/zerver/webhooks/splunk/doc.md b/zerver/webhooks/splunk/doc.mdindex 4266bda9ad3..b98418fd7f1 100644--- a/zerver/webhooks/splunk/doc.md+++ b/zerver/webhooks/splunk/doc.md@@ -2,7 +2,7 @@ See your Splunk Search alerts in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}If you do not specify a topic, the name of the search is used(truncated to fit if needed).diff --git a/zerver/webhooks/statuspage/doc.md b/zerver/webhooks/statuspage/doc.mdindex 009ff7188a7..92ec180a29a 100644--- a/zerver/webhooks/statuspage/doc.md+++ b/zerver/webhooks/statuspage/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your Statuspage.io subscriptions!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Statuspage Dashboard, and click on **Notifications**near the bottom-left corner. Select the **Webhook** tab. If webhookdiff --git a/zerver/webhooks/stripe/doc.md b/zerver/webhooks/stripe/doc.mdindex 840a30cecf1..2b2c1acc93e 100644--- a/zerver/webhooks/stripe/doc.md+++ b/zerver/webhooks/stripe/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for Stripe events!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Stripe Dashboard, click on **Developers** on the leftsidebar. Click on **Webhooks**, and click on **+ Add endpoint**.diff --git a/zerver/webhooks/taiga/doc.md b/zerver/webhooks/taiga/doc.mdindex c8121ea9205..187d8cbebf3 100644--- a/zerver/webhooks/taiga/doc.md+++ b/zerver/webhooks/taiga/doc.md@@ -2,7 +2,7 @@ Receive Zulip notifications for your Taiga projects!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}Make sure to specify the topic in the URL above. Otherwise, thedefault topic `General` will be used.diff --git a/zerver/webhooks/teamcity/doc.md b/zerver/webhooks/teamcity/doc.mdindex ef2e907c21b..35e0ae228d3 100644--- a/zerver/webhooks/teamcity/doc.md+++ b/zerver/webhooks/teamcity/doc.md@@ -2,7 +2,7 @@ Get Zulip notifications for your TeamCity builds!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Install the [tcWebHooks plugin](https://github.com/tcplugins/tcWebHooks/releases)onto your TeamCity server. Follow the plugin instructions in yourdiff --git a/zerver/webhooks/thinkst/doc.md b/zerver/webhooks/thinkst/doc.mdindex b732860c3cd..cad8b99836b 100644--- a/zerver/webhooks/thinkst/doc.md+++ b/zerver/webhooks/thinkst/doc.md@@ -4,7 +4,7 @@ Canarytokens from Thinkst's paid product, not [canarytokens.org][canarytokens] -1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Thinkst Canary settings, and click on **Webhooks** onthe left sidebar. Select the **Generic** tab. Pressdiff --git a/zerver/webhooks/transifex/doc.md b/zerver/webhooks/transifex/doc.mdindex f7d9d6a532b..648ff46837c 100644--- a/zerver/webhooks/transifex/doc.md+++ b/zerver/webhooks/transifex/doc.md@@ -2,7 +2,7 @@ Get Transifex notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. On your Transifex Dashboard, select your project, and click on**Settings**. Click on the **Webhooks** tab, and clickdiff --git a/zerver/webhooks/travis/doc.md b/zerver/webhooks/travis/doc.mdindex 568dfe7b66c..cae05f66f80 100644--- a/zerver/webhooks/travis/doc.md+++ b/zerver/webhooks/travis/doc.md@@ -2,7 +2,7 @@ See your Travis CI build notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}By default, pull request events are ignored since most peopledon't want notifications for new pushes to pull requests. Toenable notifications for pull request builds, justdiff --git a/zerver/webhooks/trello/doc.md b/zerver/webhooks/trello/doc.mdindex b903d90918d..6503ca2c494 100644--- a/zerver/webhooks/trello/doc.md+++ b/zerver/webhooks/trello/doc.md@@ -9,7 +9,7 @@ Get Zulip notifications from your Trello boards!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. **Log in to Trello**, and collect the following three items:diff --git a/zerver/webhooks/updown/doc.md b/zerver/webhooks/updown/doc.mdindex c96726639dc..831d2ae5db4 100644--- a/zerver/webhooks/updown/doc.md+++ b/zerver/webhooks/updown/doc.md@@ -2,7 +2,7 @@ See Updown reports in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to [your Updown settings page](https://updown.io/settings/edit).diff --git a/zerver/webhooks/uptimerobot/doc.md b/zerver/webhooks/uptimerobot/doc.mdindex c934f8397de..421a6a0fb7f 100644--- a/zerver/webhooks/uptimerobot/doc.md+++ b/zerver/webhooks/uptimerobot/doc.md@@ -2,7 +2,7 @@ Receive Zulip notifications from UptimeRobot!1. {!create-stream.md!}-1. {!create-a-bot-indented.md!}+1. {!create-a-bot.md!}Construct the URL for the {{ integration_display_name }}bot using the bot's API key and the desired stream name:diff --git a/zerver/webhooks/wordpress/doc.md b/zerver/webhooks/wordpress/doc.mdindex 6c60759ef59..748f9614a74 100644--- a/zerver/webhooks/wordpress/doc.md+++ b/zerver/webhooks/wordpress/doc.md@@ -6,7 +6,7 @@ first install the1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}**Important:** The HookPress plugin requires URL parameters tobe delimited by semicolons instead of ampersands. If you have adiff --git a/zerver/webhooks/zabbix/doc.md b/zerver/webhooks/zabbix/doc.mdindex a7aacdbc41b..98e3479d4f5 100644--- a/zerver/webhooks/zabbix/doc.md+++ b/zerver/webhooks/zabbix/doc.md@@ -7,7 +7,7 @@ Receive Zabbix notifications in Zulip!1. {!create-stream.md!}-1. {!create-bot-construct-url-indented.md!}+1. {!create-bot-construct-url.md!}1. Go to your Zabbix web interface, and click **Administration**. Click on**General** and then select **Macros** from the dropdown. Click **Add** and set thediff --git a/zerver/webhooks/zapier/doc.md b/zerver/webhooks/zapier/doc.mdindex b4700a9c5c7..14c24708a70 100644--- a/zerver/webhooks/zapier/doc.md+++ b/zerver/webhooks/zapier/doc.md@@ -4,7 +4,7 @@ sent by Zapier directly in Zulip.1. {!create-stream.md!}-1. {!create-a-bot-indented.md!}+1. {!create-a-bot.md!}1. Create an account on [Zapier](https://zapier.com).