Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detail-tab for collapsable markdown #4199

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/content/envoy-primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ http_filters:

#### Example Input

<details><summary>Example v3 Input</summary>
{{<detail-tag "Example v3 Input">}}
```json
{
"attributes": {
Expand Down Expand Up @@ -289,9 +289,9 @@ http_filters:
}
}
```
</details>
{{</detail-tag>}}

<details><summary>Example v2 Input</summary>
{{<detail-tag "Example v2 Input">}}
```json
{
"attributes":{
Expand Down Expand Up @@ -353,7 +353,7 @@ http_filters:
}
}
```
</details>
{{</detail-tag>}}

The `parsed_path` field in the input is generated from the `path` field in the HTTP request which is included in the
Envoy External Authorization `CheckRequest` message type. This field provides the request path as a string array which
Expand Down
4 changes: 4 additions & 0 deletions docs/website/layouts/shortcodes/detail-tag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<details>
<summary>{{ (.Get 0) | markdownify }}</summary>
{{ .Inner | markdownify }}
</details>