Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Update how to build an incoming webhook docs.
Adam Birds7c5340dc2139
diff --git a/templates/zerver/api/incoming-webhooks-overview.md b/templates/zerver/api/incoming-webhooks-overview.mdindex beaee929a71..5d77640dfc1 100644--- a/templates/zerver/api/incoming-webhooks-overview.md+++ b/templates/zerver/api/incoming-webhooks-overview.md@@ -9,7 +9,7 @@ Zulip:or cases where the third-party tool wants to control the formattingof the messages in Zulip.* Use one of our supported [integration- frameworks](/integrations/doc/meta-integration), such as the+ frameworks](/integrations/meta-integration), such as the[Slack-compatible incoming webhook](/integrations/doc/slack_incoming),[Zapier integration](/integrations/docs/zapier), or[IFTTT integration](/integrations/doc/ifttt).@@ -90,13 +90,19 @@ below are for a webhook named `MyWebHook`.used by tests. Add one fixture file per type of message supported by yourintegration.* `zerver/webhooks/mywebhook/tests.py`: Tests for your webbook.-* `zerver/webhooks/mywebhook/doc.html`: End-user documentation explaining+* `zerver/webhooks/mywebhook/doc.md`: End-user documentation explaininghow to add the integration.* `static/images/integrations/logos/mywebhook.svg`: A square logo for theplatform/server/product you are integrating. Used on the documentationpages as well as the sender's avatar for messages sent by the integration.* `static/images/integrations/mywebbook/001.svg`: A screenshot of a message- sent by the integration, used on the documentation page.+ sent by the integration, used on the documentation page. This can be+ generated by running `tools/generate-integration-docs-screenshot --integration mywebhook`.+* `static/images/integrations/bot_avatars/mywebhook.png`: A square logo for the+ platform/server/product you are integrating which is used to create the avatar+ for generating screenshots with. This can be generated automatically from+ `static/images/integrations/logos/mywebhook.svg` by running+ `tools/setup/generate_integration_bots_avatars.py`.### Files that need to be updated@@ -104,7 +110,10 @@ below are for a webhook named `MyWebHook`.`WEBHOOK_INTEGRATIONS`. This will automatically register aURL for the incoming webhook of the form `api/v1/external/mywebhook` andassociate it with the function called `api_mywebhook_webhook` in- `zerver/webhooks/mywebhook/view.py`.+ `zerver/webhooks/mywebhook/view.py`. Also add your integration to+ `DOC_SCREENSHOT_CONFIG`. This will allow you to automatically generate+ a screenshot for the documentation by running+ `tools/generate-integration-docs-screenshot --integration mywebhook`.## Common Helpers