Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-docs: Add comma to all uses of "e.g." in API docs.
Lauryn Menard2bb037f2a0a7
diff --git a/api_docs/changelog.md b/api_docs/changelog.mdindex b959587d221..e8956a4885f 100644--- a/api_docs/changelog.md+++ b/api_docs/changelog.md@@ -2301,7 +2301,7 @@ No changes; feature level used for Zulip 3.0 release.deprecating and replacing the `is_announcement_only` boolean.* [`GET /user_uploads/{realm_id_str}/{filename}`](/api/get-file-temporary-url):New endpoint added for requesting a temporary URL for an uploaded- file that does not require authentication to access (e.g. for passing+ file that does not require authentication to access (e.g., for passingfrom a Zulip desktop, mobile, or terminal app to the user's defaultbrowser).* [`POST /register`](/api/register-queue), [`GET /events`](/api/get-events),diff --git a/api_docs/construct-narrow.md b/api_docs/construct-narrow.mdindex 0f69e7812f1..d63c768cd16 100644--- a/api_docs/construct-narrow.md+++ b/api_docs/construct-narrow.md@@ -47,7 +47,7 @@ for details.Clients should note that the `is:unread` filter takes advantage of thefact that there is a database index for unread messages, which can be an-important optimization when fetching messages in certain cases (e.g.+important optimization when fetching messages in certain cases (e.g.,when [adding the `read` flag to a user's personalmessages](/api/update-message-flags-for-narrow)).diff --git a/api_docs/deploying-bots.md b/api_docs/deploying-bots.mdindex 03f6e33d554..e30eb78e3f3 100644--- a/api_docs/deploying-bots.md+++ b/api_docs/deploying-bots.md@@ -178,7 +178,7 @@ running it manually.{start_tabs}-1. Install *supervisord* via your package manager; e.g. on Debian/Ubuntu:+1. Install *supervisord* via your package manager; e.g., on Debian/Ubuntu:```sudo apt-get install supervisordiff --git a/api_docs/incoming-webhooks-overview.md b/api_docs/incoming-webhooks-overview.mdindex b157d5c42b9..e4ef7bb845d 100644--- a/api_docs/incoming-webhooks-overview.md+++ b/api_docs/incoming-webhooks-overview.md@@ -125,12 +125,12 @@ below are for a webhook named `MyWebHook`.## General advice* Consider using our Zulip markup to make the output from your- integration especially attractive or useful (e.g. emoji, Markdown+ integration especially attractive or useful (e.g., emoji, Markdownemphasis, or @-mentions).* Use topics effectively to ensure sequential messages about the samething are threaded together; this makes for much better consumption- by users. E.g. for a bug tracker integration, put the bug number in+ by users. E.g., for a bug tracker integration, put the bug number inthe topic for all messages; for an integration like Nagios, put theservice in the topic.diff --git a/api_docs/incoming-webhooks-walkthrough.md b/api_docs/incoming-webhooks-walkthrough.mdindex 2e6ca40d2f5..9d61bf6127e 100644--- a/api_docs/incoming-webhooks-walkthrough.md+++ b/api_docs/incoming-webhooks-walkthrough.md@@ -71,7 +71,7 @@ integration uses.In the `zerver/webhooks/` directory, create new subdirectory that willcontain all of the corresponding code. In our example it will be`helloworld`. The new directory will be a python package, so you have-to create an empty `__init__.py` file in that directory via e.g.+to create an empty `__init__.py` file in that directory via e.g.,`touch zerver/webhooks/helloworld/__init__.py`.## Step 2: Create main webhook code@@ -128,7 +128,7 @@ https://zulip.readthedocs.io/en/latest/tutorials/writing-views.html#request-variYou must pass the name of your integration to the`webhook_view` decorator; that name will be used to-describe your integration in Zulip's analytics (e.g. the `/stats`+describe your integration in Zulip's analytics (e.g., the `/stats`page). Here we have used `HelloWorld`. To be consistent with otherintegrations, use the name of the product you are integrating in camelcase, spelled as the product spells its own name (except always firstdiff --git a/api_docs/rest-error-handling.md b/api_docs/rest-error-handling.mdindex b1ce720bdec..a4a43058974 100644--- a/api_docs/rest-error-handling.md+++ b/api_docs/rest-error-handling.md@@ -19,7 +19,7 @@ Every error response will also contain an additional key:Clients should always check `code`, rather than `msg`, when looking forspecific error conditions. The string values for `msg` are-internationalized (e.g. the server will send the error message+internationalized (e.g., the server will send the error messagetranslated into French if the user has a French locale), so checkingthose strings will result in buggy code.@@ -53,7 +53,7 @@ In JSON success responses, all Zulip REST API endpoints may returnan array of parameters sent in the request that are not supportedby that specific endpoint.-While this can be expected, e.g. when sending both current and legacy+While this can be expected, e.g., when sending both current and legacynames for a parameter to a Zulip server of unknown version, this oftenindicates either a bug in the client implementation or an attempt toconfigure a new feature while connected to an older Zulip server thatdiff --git a/api_docs/rest.md b/api_docs/rest.mdindex 755b6e75938..4f8017173b6 100644--- a/api_docs/rest.md+++ b/api_docs/rest.md@@ -6,7 +6,7 @@ you can do in Zulip, you can do with Zulip's REST API. To use this API:* You'll need to [get an API key](/api/api-keys). You will likelywant to [create a bot](/help/add-a-bot-or-integration), unless you'reusing the API to interact with- your own account (e.g. exporting your personal message history).+ your own account (e.g., exporting your personal message history).* Choose what language you'd like to use. You can download the[Python or JavaScript bindings](/api/installation-instructions), projects in[other languages](/api/client-libraries), ordiff --git a/api_docs/running-bots.md b/api_docs/running-bots.mdindex aeb1eafd99a..428f4f2e2e2 100644--- a/api_docs/running-bots.md+++ b/api_docs/running-bots.md@@ -12,7 +12,7 @@ https://github.com/zulip/python-zulip-api/tree/main/zulip_bots/zulip_bots/bots).You'll need:* An account in a Zulip organization- (e.g. [the Zulip development community](https://zulip.com/development-community/),+ (e.g., [the Zulip development community](https://zulip.com/development-community/),`<yourSubdomain>.zulipchat.com`, or a Zulip organization on your own[development](https://zulip.readthedocs.io/en/latest/development/overview.html) or[production](https://zulip.readthedocs.io/en/latest/production/install.html) server).diff --git a/api_docs/writing-bots.md b/api_docs/writing-bots.mdindex 43bee3542e1..8867bfb16ce 100644--- a/api_docs/writing-bots.md+++ b/api_docs/writing-bots.md@@ -151,7 +151,7 @@ Response: stream: followup topic: [email protected]```Note that the `-b` (aka `--bot-config-file`) argument is for an optional third party-config file (e.g. ~/giphy.conf), which only applies to certain types of bots.+config file (e.g., ~/giphy.conf), which only applies to certain types of bots.## Bot API@@ -208,7 +208,7 @@ handles user message.* message - a dictionary describing a Zulip message-* bot_handler - used to interact with the server, e.g. to send a message+* bot_handler - used to interact with the server, e.g., to send a message#### Return values@@ -290,7 +290,7 @@ bot_handler.update_message(dict(### bot_handler.storageA common problem when writing an interactive bot is that you want to-be able to store a bit of persistent state for the bot (e.g. for an+be able to store a bit of persistent state for the bot (e.g., for anRSVP bot, the RSVPs). For a sufficiently complex bot, you want needyour own database, but for simpler bots, we offer a convenient way forbot code to persistently store data.@@ -382,7 +382,7 @@ every call to `put` and `get`, respectively.* key - the API key you created for the bot; this is how Zulip knowsthe request is from an authorized user.-* email - the email address of the bot, e.g. `[email protected]`+* email - the email address of the bot, e.g., `[email protected]`* site - your development environment URL; if you are working on adevelopment environment hosted on your computer, use