mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
docs: Add syntax highlighting languages to code blocks.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
8fd89f87e0
commit
b29b6f6526
@@ -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}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user