docs: Add syntax highlighting languages to code blocks.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-08-19 22:09:04 -07:00
committed by Tim Abbott
parent 8fd89f87e0
commit b29b6f6526
62 changed files with 732 additions and 630 deletions

View File

@@ -106,7 +106,7 @@ defined using a special Markdown extension
(`zerver/openapi/markdown_extension.py`). To use this extension, one
writes a Markdown file block that looks something like this:
```
```md
{start_tabs}
{tab|python}
@@ -184,7 +184,7 @@ an API endpoint supports. You'll see this in files like
directive (implemented in
`zerver/lib/markdown/api_arguments_table_generator.py`):
```
```md
{generate_api_arguments_table|zulip.yaml|/messages/render:post}
```
@@ -204,7 +204,7 @@ section, this part should be fairly trivial.
You can use the following Markdown directive to render all the fixtures
defined in the OpenAPI `zulip.yaml` for a given endpoint
```
```md
{generate_code_example|/messages/render:post|fixture}
```