docs: Add syntax highlighting languages to code blocks.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit b29b6f6526)
This commit is contained in:
Anders Kaseorg
2021-08-19 22:09:04 -07:00
parent dbb7bc824c
commit 90bf44bde0
62 changed files with 729 additions and 627 deletions

View File

@@ -40,7 +40,7 @@ types of authentication, and configure other settings. Once defined,
information in this section rarely changes.
For example, the `swagger` and `info` objects look like this:
```
```yaml
# Basic Swagger UI info
openapi: 3.0.1
info:
@@ -79,7 +79,7 @@ expects a GET request with one
Basic authentication, and returns a JSON response containing `msg`,
`result`, and `presence` values.
```
```yaml
/users/{user}/presence:
get:
description: Get presence data for another user.
@@ -119,7 +119,7 @@ contains schemas referenced by other objects. For example,
contains three required parameters. Two are strings, and one is an
integer.
```
```yaml
MessageResponse:
type: object
required:
@@ -183,7 +183,7 @@ correct.
### Examples:
```
```yaml
Description: |
This description has multiple lines.
Sometimes descriptions can go on for