From 9115be0e9e4acb615cea44eac702b457db1cee1f Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Thu, 22 Jun 2017 08:49:34 -0230 Subject: [PATCH] integrations/trello-plugin: Migrate docs to Markdown. --- .../zerver/integrations/trello-plugin.html | 30 ------------------- .../zerver/integrations/trello-plugin.md | 19 ++++++++++++ zerver/lib/integrations.py | 3 +- 3 files changed, 21 insertions(+), 31 deletions(-) delete mode 100644 templates/zerver/integrations/trello-plugin.html create mode 100644 templates/zerver/integrations/trello-plugin.md diff --git a/templates/zerver/integrations/trello-plugin.html b/templates/zerver/integrations/trello-plugin.html deleted file mode 100644 index e4068cba37..0000000000 --- a/templates/zerver/integrations/trello-plugin.html +++ /dev/null @@ -1,30 +0,0 @@ -

- This legacy integration for Trello works by running a script - that communicates with the Trello API in a cron job. We - recommend the new Trello webhook - integration (which will eventually replace this entirely). - Please - - report any issues - - which cause you to prefer this integration over - the webhook integration. -

- -

- First, create the stream you'd like to use for Trello notifications, - and subscribe all interested parties to this stream. We recommend the - name trello. -

- -

- Next, download a copy - of trello-to-zulip - and follow the instructions in README.md. When you - make changes in Trello, they will be reflected in Zulip: -

- - -

- Thanks to Nathan from FoundationDB for submitting this integration! -

diff --git a/templates/zerver/integrations/trello-plugin.md b/templates/zerver/integrations/trello-plugin.md new file mode 100644 index 0000000000..3b53f8d767 --- /dev/null +++ b/templates/zerver/integrations/trello-plugin.md @@ -0,0 +1,19 @@ +This legacy integration for Trello works by running a script that +communicates with the Trello API in a cron job. We recommend +[the new Trello webhook integration](#trello) (which will +eventually replace this entirely). Please +[report any issues](https://github.com/zulip/zulip/issues/new) +which cause you to prefer this integration over the webhook +integration. + +{!create-stream.md!} + +Next, download a copy of +[trello-to-zulip](https://github.com/zulip/trello-to-zulip) +and follow the instructions in `README.md`. + +{!congrats.md!} + +![](/static/images/integrations/trello/002.png) + +##### Thanks to Nathan from FoundationDB for submitting this integration! diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py index 4b0c42ff1b..282e1a1455 100644 --- a/zerver/lib/integrations.py +++ b/zerver/lib/integrations.py @@ -313,7 +313,8 @@ INTEGRATIONS = { logo='static/images/integrations/logos/trello.svg', secondary_line_text='(legacy)', display_name='Trello', - doc='zerver/integrations/trello-plugin.html' + doc='zerver/integrations/trello-plugin.md', + stream_name='trello', ), 'twitter': Integration('twitter', 'twitter', doc='zerver/integrations/twitter.md'),