Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Move non-webhook-integrations from API docs to help center.

Lauryn Menarda70bbd9fb6aa
diff --git a/api_docs/integrations-overview.md b/api_docs/integrations-overview.md
index 4be370ca7e6..29c09537d75 100644
--- a/api_docs/integrations-overview.md
+++ b/api_docs/integrations-overview.md
@@ -105,7 +105,7 @@ Sales](mailto:[email protected]).
* If the third-party service supports outgoing webhooks, you likely want to
build an [incoming webhook integration][incoming-webhooks-overview].
* If it doesn't, you may want to write a
- [script or plugin integration](/api/non-webhook-integrations).
+ [script or plugin integration](/help/non-webhook-integrations).
* The [`zulip-send` tool](/api/send-message) makes it easy to send Zulip
messages from shell scripts.
* Finally, you can
diff --git a/api_docs/non-webhook-integrations.md b/api_docs/non-webhook-integrations.md
deleted file mode 100644
index 23f22454515..00000000000
--- a/api_docs/non-webhook-integrations.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# Non-webhook integrations
-
-[Incoming webhook integrations][incoming-webhooks-overview] are the
-fastest to write, but sometimes a third-party product just doesn't support
-them. Zulip supports several other types of integrations.
-
-* **Python script integrations**
- (examples: SVN, Git), where we can get the service to call our integration
- (by shelling out or otherwise), passing in the required data. Our preferred
- model for these is to ship these integrations in the
- [Zulip Python API distribution](https://github.com/zulip/python-zulip-api/tree/main/zulip),
- within the `integrations` directory there.
-
-* **Plugin integrations** (examples:
- Jenkins, Hubot, Trac) where the user needs to install a plugin into their
- existing software. These are often more work, but for some products are the
- only way to integrate with the product at all.
-
- For plugin integrations, usually you will need to consult the
- documentation for the third party software in order to learn how to
- write the integration.
-
-* **Interactive bots**. See [Writing bots](/help/writing-bots).
-
-A few notes on how to do these:
-
-* You should always send messages by POSTing to URLs of the form
-`https://zulip.example.com/v1/messages/`.
-
-* We usually build Python script integrations with (at least) 2 files:
-`zulip_foo_config.py` containing the configuration for the
-integration including the bots' API keys, plus a script that reads
-from this configuration to actually do the work (that way, it's
-possible to update the script without breaking users' configurations).
-
-* Be sure to test your integration carefully and
- [document](https://zulip.readthedocs.io/en/latest/documentation/integrations.html)
- how to install it.
-
-* You should specify a clear HTTP User-Agent for your integration. The
-user agent should at a minimum identify the integration and version
-number, separated by a slash. If possible, you should collect platform
-information and include that in `()`s after the version number. Some
-examples of ideal UAs are:
-
- ```
- ZulipDesktop/0.7.0 (Ubuntu; 14.04)
- ZulipJenkins/0.1.0 (Windows; 7.2)
- ZulipMobile/0.5.4 (Android; 4.2; maguro)
- ```
-
-* The [general advice][webhooks-general-advice] for webhook integrations applies here as well.
-
-## Related articles
-
-* [Running bots](/help/running-bots)
-* [Deploying bots](/help/deploying-bots)
-* [Writing bots](/help/writing-bots)
-
-[incoming-webhooks-overview]: https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html
-[webhooks-general-advice]: https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html#general-advice
diff --git a/api_docs/sidebar_index.md b/api_docs/sidebar_index.md
index bf584a36919..13208634a3d 100644
--- a/api_docs/sidebar_index.md
+++ b/api_docs/sidebar_index.md
@@ -3,7 +3,7 @@
* [Overview](/api/integrations-overview)
* [Incoming webhook integrations](https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html)
* [Hello world walkthrough](https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-walkthrough.html)
-* [Non-webhook integrations](/api/non-webhook-integrations)
+* [Non-webhook integrations](/help/non-webhook-integrations)
## Interactive bots
diff --git a/starlight_help/astro.config.mjs b/starlight_help/astro.config.mjs
index 3d017143317..3a71b73b59a 100644
--- a/starlight_help/astro.config.mjs
+++ b/starlight_help/astro.config.mjs
@@ -667,6 +667,7 @@ export default defineConfig({
},
"view-your-bots",
"view-all-bots-in-your-organization",
+ "non-webhook-integrations",
"writing-bots",
"interactive-bots-api",
"writing-tests-for-interactive-bots",
diff --git a/starlight_help/src/content/docs/deploying-bots.mdx b/starlight_help/src/content/docs/deploying-bots.mdx
index dbd3bb17b68..f3304d8b887 100644
--- a/starlight_help/src/content/docs/deploying-bots.mdx
+++ b/starlight_help/src/content/docs/deploying-bots.mdx
@@ -248,6 +248,6 @@ Botserver with SSL using an `nginx` or `Apache` reverse proxy and
## Related articles
-* [Non-webhook integrations](/api/non-webhook-integrations)
+* [Non-webhook integrations](/help/non-webhook-integrations)
* [Running bots](/help/running-bots)
* [Writing bots](/help/writing-bots)
diff --git a/starlight_help/src/content/docs/integrations-overview.mdx b/starlight_help/src/content/docs/integrations-overview.mdx
index 8b5e9116cec..a90a0cc3361 100644
--- a/starlight_help/src/content/docs/integrations-overview.mdx
+++ b/starlight_help/src/content/docs/integrations-overview.mdx
@@ -102,7 +102,7 @@ Sales](mailto:[email protected]).
build an [incoming webhook
integration](https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html).
* If it doesn't, you may want to write a
- [script or plugin integration](/api/non-webhook-integrations).
+ [script or plugin integration](/help/non-webhook-integrations).
* The [`zulip-send` tool](/api/send-message) makes it easy to send Zulip
messages from shell scripts.
* Finally, you can
diff --git a/starlight_help/src/content/docs/non-webhook-integrations.mdx b/starlight_help/src/content/docs/non-webhook-integrations.mdx
new file mode 100644
index 00000000000..191b18bc348
--- /dev/null
+++ b/starlight_help/src/content/docs/non-webhook-integrations.mdx
@@ -0,0 +1,64 @@
+---
+title: Non-webhook integrations
+---
+
+[Incoming webhook integrations][incoming-webhooks-overview] are the
+fastest to write, but sometimes a third-party product just doesn't support
+them. Zulip supports several other types of integrations.
+
+* **Python script integrations**
+ (examples: SVN, Git), where we can get the service to call our integration
+ (by shelling out or otherwise), passing in the required data. Our preferred
+ model for these is to ship these integrations in the
+ [Zulip Python API distribution](https://github.com/zulip/python-zulip-api/tree/main/zulip),
+ within the `integrations` directory there.
+
+* **Plugin integrations** (examples:
+ Jenkins, Hubot, Trac) where the user needs to install a plugin into their
+ existing software. These are often more work, but for some products are the
+ only way to integrate with the product at all.
+
+ For plugin integrations, usually you will need to consult the
+ documentation for the third party software in order to learn how to
+ write the integration.
+
+* **Interactive bots**. See [Writing bots](/help/writing-bots).
+
+A few notes on how to do these:
+
+* You should always send messages by POSTing to URLs of the form
+ `https://zulip.example.com/v1/messages/`.
+
+* We usually build Python script integrations with (at least) 2 files:
+ `zulip_foo_config.py` containing the configuration for the
+ integration including the bots' API keys, plus a script that reads
+ from this configuration to actually do the work (that way, it's
+ possible to update the script without breaking users' configurations).
+
+* Be sure to test your integration carefully and
+ [document](https://zulip.readthedocs.io/en/latest/documentation/integrations.html)
+ how to install it.
+
+* You should specify a clear HTTP User-Agent for your integration. The
+ user agent should at a minimum identify the integration and version
+ number, separated by a slash. If possible, you should collect platform
+ information and include that in `()`s after the version number. Some
+ examples of ideal UAs are:
+
+ ```
+ ZulipDesktop/0.7.0 (Ubuntu; 14.04)
+ ZulipJenkins/0.1.0 (Windows; 7.2)
+ ZulipMobile/0.5.4 (Android; 4.2; maguro)
+ ```
+
+* The [general advice][webhooks-general-advice] for webhook integrations applies here as well.
+
+## Related articles
+
+* [Running bots](/help/running-bots)
+* [Deploying bots](/help/deploying-bots)
+* [Writing bots](/help/writing-bots)
+
+[incoming-webhooks-overview]: https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html
+
+[webhooks-general-advice]: https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html#general-advice
diff --git a/starlight_help/src/content/docs/restrict-bot-creation.mdx b/starlight_help/src/content/docs/restrict-bot-creation.mdx
index 08e389d924f..51d921e8946 100644
--- a/starlight_help/src/content/docs/restrict-bot-creation.mdx
+++ b/starlight_help/src/content/docs/restrict-bot-creation.mdx
@@ -55,4 +55,4 @@ individual [users](/help/introduction-to-users).
* [Deactivate or reactivate a bot](/help/deactivate-or-reactivate-a-bot)
* [Incoming webhooks](https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html)
* [Outgoing webhooks](/help/outgoing-webhooks)
-* [Non-webhook integrations](/api/non-webhook-integrations)
+* [Non-webhook integrations](/help/non-webhook-integrations)
diff --git a/starlight_help/src/content/docs/running-bots.mdx b/starlight_help/src/content/docs/running-bots.mdx
index 89d52fb17de..43602085ae8 100644
--- a/starlight_help/src/content/docs/running-bots.mdx
+++ b/starlight_help/src/content/docs/running-bots.mdx
@@ -70,6 +70,6 @@ server using the Zulip Botserver.
## Related articles
-* [Non-webhook integrations](/api/non-webhook-integrations)
+* [Non-webhook integrations](/help/non-webhook-integrations)
* [Deploying bots](/help/deploying-bots)
* [Writing bots](/help/writing-bots)
diff --git a/starlight_help/src/content/docs/writing-bots.mdx b/starlight_help/src/content/docs/writing-bots.mdx
index d4c9c2ad17a..6301ba72de8 100644
--- a/starlight_help/src/content/docs/writing-bots.mdx
+++ b/starlight_help/src/content/docs/writing-bots.mdx
@@ -135,4 +135,4 @@ Ensure that you restarted the `zulip-run-bot` script.
* [Running bots](/help/running-bots)
* [Deploying bots](/help/deploying-bots)
* [Configuring the Python bindings](/api/configuring-python-bindings)
-* [Non-webhook integrations](/api/non-webhook-integrations)
+* [Non-webhook integrations](/help/non-webhook-integrations)
diff --git a/zerver/lib/url_redirects.py b/zerver/lib/url_redirects.py
index ac1a28b666c..b6e30bd901c 100644
--- a/zerver/lib/url_redirects.py
+++ b/zerver/lib/url_redirects.py
@@ -19,6 +19,7 @@ REDIRECTED_TO_HELP_DOCUMENTATION: list[URLRedirect] = [
),
URLRedirect("/api/interactive-bots-api", "/help/interactive-bots-api"),
URLRedirect("/api/writing-bots", "/help/writing-bots"),
+ URLRedirect("/api/non-webhook-integrations", "/help/non-webhook-integrations"),
]
API_DOCUMENTATION_REDIRECTS: list[URLRedirect] = [