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.

integrations: Update Perforce Documentation.

Adam Birdseca9cfd7d76c
diff --git a/templates/zerver/integrations/perforce.md b/templates/zerver/integrations/perforce.md
index da83918045b..57830adb742 100644
--- a/templates/zerver/integrations/perforce.md
+++ b/templates/zerver/integrations/perforce.md
@@ -1,48 +1,47 @@
Zulip supports integration with Perforce as a [trigger][1]
that fires once a changelist is submitted and committed.
-To do this:
[1]: https://www.perforce.com/manuals/p4sag/Content/P4SAG/chapter.scripting.html
-{!download-python-bindings.md!}
-
-The Perforce trigger will be installed to a location like
-`/usr/local/share/zulip/integrations/perforce`.
-
-{!change-zulip-config-file.md!}
-
-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,
-then the changelist number of each commit will be converted to
-a hyperlink that displays the commit details on P4Web.
-
-Edit your [trigger table][2] with `p4 triggers` and add an entry
-something like the following:
-
- notify_zulip change-commit //depot/... "/usr/local/share/zulip/integrations/perforce/zulip_change-commit.py %change% %changeroot%"
-
-[2]: https://www.perforce.com/manuals/p4sag/Content/P4SAG/chapter.scripting.html#d0e14583
-
-By default, this hook will send to streams of the form
-`depot_subdirectory-commits`. So, a changelist that modifies
-files in `//depot/foo/bar/baz` will result in a message to
-stream `foo-commits`. Messages about changelists that modify
-files in the depot root or files in multiple direct subdirectories
-of the depot root will be sent to `depot-commits`.
-If you'd prefer different behavior, such as all commits across your
-depot going to one stream, change it now in `zulip_perforce_config.py`.
-Make sure that everyone interested in getting these post-commit Zulips
-is subscribed to the relevant streams!
-
-By default, this hook will send a message to Zulip even if the
-destination stream does not yet exist. Messages to nonexistent
-streams prompt the Zulip Notification Bot to inform the bot's
-owner by private message that they may wish to create the stream.
-If this behaviour is undesirable, for example with a large and busy
-Perforce server, change the `ZULIP_IGNORE_MISSING_STREAM`
-variable in `zulip_perforce_config.py` to `True`.
-This will change the hook's behaviour to first check whether the
-destination stream exists and silently drop messages if it does not.
+1. {!download-python-bindings.md!}
+
+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. 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,
+ then the changelist number of each commit will be converted to
+ a hyperlink that displays the commit details on P4Web.
+
+1. Edit your [trigger table][2] with `p4 triggers` and add an entry
+ something like the following:
+
+ notify_zulip change-commit //depot/... "/usr/local/share/zulip/integrations/perforce/zulip_change-commit.py %change% %changeroot%"
+
+ [2]: https://www.perforce.com/manuals/p4sag/Content/P4SAG/chapter.scripting.html#d0e14583
+
+1. By default, this hook will send to streams of the form
+ `depot_subdirectory-commits`. So, a changelist that modifies
+ files in `//depot/foo/bar/baz` will result in a message to
+ stream `foo-commits`. Messages about changelists that modify
+ files in the depot root or files in multiple direct subdirectories
+ of the depot root will be sent to `depot-commits`.
+ If you'd prefer different behavior, such as all commits across your
+ depot going to one stream, change it now in `zulip_perforce_config.py`.
+ Make sure that everyone interested in getting these post-commit Zulips
+ is subscribed to the relevant streams!
+
+1. By default, this hook will send a message to Zulip even if the
+ destination stream does not yet exist. Messages to nonexistent
+ streams prompt the Zulip Notification Bot to inform the bot's
+ owner by private message that they may wish to create the stream.
+ If this behaviour is undesirable, for example with a large and busy
+ Perforce server, change the `ZULIP_IGNORE_MISSING_STREAM`
+ variable in `zulip_perforce_config.py` to `True`.
+ This will change the hook's behaviour to first check whether the
+ destination stream exists and silently drop messages if it does not.
{!congrats.md!}