Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
integrations: Add documentation for Notion-Zapier Integration.
sbansal199963fcfd543ac7
diff --git a/static/images/integrations/bot_avatars/notion.png b/static/images/integrations/bot_avatars/notion.pngnew file mode 100644index 00000000000..2b6d22b4018Binary files /dev/null and b/static/images/integrations/bot_avatars/notion.png differdiff --git a/static/images/integrations/logos/notion.svg b/static/images/integrations/logos/notion.svgnew file mode 100644index 00000000000..bf6442f76a4--- /dev/null+++ b/static/images/integrations/logos/notion.svg@@ -0,0 +1,4 @@+<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M6.017 4.313l55.333 -4.087c6.797 -0.583 8.543 -0.19 12.817 2.917l17.663 12.443c2.913 2.14 3.883 2.723 3.883 5.053v68.243c0 4.277 -1.553 6.807 -6.99 7.193L24.467 99.967c-4.08 0.193 -6.023 -0.39 -8.16 -3.113L3.3 79.94c-2.333 -3.113 -3.3 -5.443 -3.3 -8.167V11.113c0 -3.497 1.553 -6.413 6.017 -6.8z" fill="#fff"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M61.35 0.227l-55.333 4.087C1.553 4.7 0 7.617 0 11.113v60.66c0 2.723 0.967 5.053 3.3 8.167l13.007 16.913c2.137 2.723 4.08 3.307 8.16 3.113l64.257 -3.89c5.433 -0.387 6.99 -2.917 6.99 -7.193V20.64c0 -2.21 -0.873 -2.847 -3.443 -4.733L74.167 3.143c-4.273 -3.107 -6.02 -3.5 -12.817 -2.917zM25.92 19.523c-5.247 0.353 -6.437 0.433 -9.417 -1.99L8.927 11.507c-0.77 -0.78 -0.383 -1.753 1.557 -1.947l53.193 -3.887c4.467 -0.39 6.793 1.167 8.54 2.527l9.123 6.61c0.39 0.197 1.36 1.36 0.193 1.36l-54.933 3.307 -0.68 0.047zM19.803 88.3V30.367c0 -2.53 0.777 -3.697 3.103 -3.893L86 22.78c2.14 -0.193 3.107 1.167 3.107 3.693v57.547c0 2.53 -0.39 4.67 -3.883 4.863l-60.377 3.5c-3.493 0.193 -5.043 -0.97 -5.043 -4.083zm59.6 -54.827c0.387 1.75 0 3.5 -1.75 3.7l-2.91 0.577v42.773c-2.527 1.36 -4.853 2.137 -6.797 2.137 -3.107 0 -3.883 -0.973 -6.21 -3.887l-19.03 -29.94v28.967l6.02 1.363s0 3.5 -4.857 3.5l-13.39 0.777c-0.39 -0.78 0 -2.723 1.357 -3.11l3.497 -0.97v-38.3L30.48 40.667c-0.39 -1.75 0.58 -4.277 3.3 -4.473l14.367 -0.967 19.8 30.327v-26.83l-5.047 -0.58c-0.39 -2.143 1.163 -3.7 3.103 -3.89l13.4 -0.78z" fill="#000"/>+</svg>diff --git a/templates/zerver/integrations/notion.md b/templates/zerver/integrations/notion.mdnew file mode 100644index 00000000000..61254f90d8e--- /dev/null+++ b/templates/zerver/integrations/notion.md@@ -0,0 +1,32 @@+Get Zulip notifications for your Notion database via Zapier!++1. {!create-stream.md!}++1. {!create-an-incoming-webhook.md!}++1. Create an account on [Zapier](https://zapier.com).++1. [Click here](https://zapier.com/developer/public-invite/8304/bb0e9784d171eb44762c1bef4fcba2df/)+ and then click **Accept Invite & Build a Zap**.++1. Click **Create Zap** in the upper left.++1. Now select **Notion** as the trigger app and choose an event. For+ example, you can choose **New Database Item** as the event.++1. After this, you will be asked to connect your **Notion** account.+ Follow the instructions to do so.++1. After connecting your account, you will be asked to select a+ database for which you want to get notifications.+ You will then be asked to test the trigger. If the test is+ successful, you can proceed to the next step.++1. Continue with step 7 of the [Zapier documentation][1] to+ finish integrating Zulip with Notion.++You can repeat the above process and create Zaps for different databases+and/or different kinds of Notion events that you'd like to be notified+about in Zulip.++[1]: ./zapierdiff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.pyindex dfe8244795e..2811f2a19c7 100644--- a/zerver/lib/integrations.py+++ b/zerver/lib/integrations.py@@ -582,6 +582,9 @@ INTEGRATIONS: Dict[str, Integration] = {stream_name="commits",),"nagios": Integration("nagios", "nagios", ["monitoring"], doc="zerver/integrations/nagios.md"),+ "notion": Integration(+ "notion", "notion", ["productivity"], doc="zerver/integrations/notion.md"+ ),"openshift": Integration("openshift","openshift",