Skip to content
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,13 @@ paragraphs will not be part of the blockquote.
Admonitions inside of other shortcodes need to use the special syntax, too:

```markdown
{{< expand title="Outer shortcode" >}}
{{< details summary="Outer shortcode" >}}

{{</* tip */>}}
Inner shortcode
{{</* /tip */>}}

{{< /expand >}}
{{< /details >}}
```

#### Tags
Expand Down Expand Up @@ -472,9 +472,9 @@ Content or reminder that should not be rendered.
The following shortcodes also exist but are rarely used:

- ```markdown
{{< expand title="A short description" >}}
{{< details summary="A short description" >}}
Content that is collapsed by default but can be expanded.
{{< /expand >}}
{{< /details >}}
```

- `{{< youtube id="dQw4w9WgXcQ" >}}` can be used to embed a single YouTube video,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export OASIS_TOKEN='<TOKEN>'
./oasisctl list roles --organization-id <ID> --format json | jq -r '.[] | select(.predefined == true) | "**\(.description)** (`\(.id)`):\n\(.permissions | split(", ") | map("- `\(.)`\n") | join(""))"'
{{% /comment %}}

{{< expand title="List of predefined roles and their permissions" >}}
{{< details summary="List of predefined roles and their permissions" >}}

{{</* tip */>}}
The roles below are described following this pattern:
Expand Down Expand Up @@ -475,7 +475,7 @@ The roles below are described following this pattern:
- `iam.user.get-personal-data`
- `iam.user.update`

{{< /expand >}}
{{< /details >}}

### How to create a custom role

Expand Down
4 changes: 2 additions & 2 deletions site/content/3.10/develop/http-api/administration.md
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ Example not generated because it would require a valid license to demonstrate th
curl --header 'accept: application/json' --dump - --data '"eyJncmFudCI6...(Base64-encoded license string)..."' -X PUT http://localhost:8529/_admin/license
```

{{< expand title="Show output" >}}
{{< details summary="Show output" >}}
```bash
HTTP/1.1 201 Created
content-type: application/json
Expand All @@ -988,7 +988,7 @@ x-content-type-options: nosniff
}
}
```
{{< /expand >}}
{{< /details >}}

## Shutdown

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export OASIS_TOKEN='<TOKEN>'
./oasisctl list roles --organization-id <ID> --format json | jq -r '.[] | select(.predefined == true) | "**\(.description)** (`\(.id)`):\n\(.permissions | split(", ") | map("- `\(.)`\n") | join(""))"'
{{% /comment %}}

{{< expand title="List of predefined roles and their permissions" >}}
{{< details summary="List of predefined roles and their permissions" >}}

{{</* tip */>}}
The roles below are described following this pattern:
Expand Down Expand Up @@ -475,7 +475,7 @@ The roles below are described following this pattern:
- `iam.user.get-personal-data`
- `iam.user.update`

{{< /expand >}}
{{< /details >}}

### How to create a custom role

Expand Down
4 changes: 2 additions & 2 deletions site/content/3.11/develop/http-api/administration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ Example not generated because it would require a valid license to demonstrate th
curl --header 'accept: application/json' --dump - --data '"eyJncmFudCI6...(Base64-encoded license string)..."' -X PUT http://localhost:8529/_admin/license
```

{{< expand title="Show output" >}}
{{< details summary="Show output" >}}
```bash
HTTP/1.1 201 Created
content-type: application/json
Expand All @@ -1097,7 +1097,7 @@ x-content-type-options: nosniff
}
}
```
{{< /expand >}}
{{< /details >}}

## Shutdown

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export OASIS_TOKEN='<TOKEN>'
./oasisctl list roles --organization-id <ID> --format json | jq -r '.[] | select(.predefined == true) | "**\(.description)** (`\(.id)`):\n\(.permissions | split(", ") | map("- `\(.)`\n") | join(""))"'
{{% /comment %}}

{{< expand title="List of predefined roles and their permissions" >}}
{{< details summary="List of predefined roles and their permissions" >}}

{{</* tip */>}}
The roles below are described following this pattern:
Expand Down Expand Up @@ -475,7 +475,7 @@ The roles below are described following this pattern:
- `iam.user.get-personal-data`
- `iam.user.update`

{{< /expand >}}
{{< /details >}}

### How to create a custom role

Expand Down
4 changes: 2 additions & 2 deletions site/content/3.12/develop/http-api/administration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ Example not generated because it would require a valid license to demonstrate th
curl --header 'accept: application/json' --dump - --data '"eyJncmFudCI6...(Base64-encoded license string)..."' -X PUT http://localhost:8529/_admin/license
```

{{< expand title="Show output" >}}
{{< details summary="Show output" >}}
```bash
HTTP/1.1 201 Created
content-type: application/json
Expand All @@ -1253,7 +1253,7 @@ x-content-type-options: nosniff
}
}
```
{{< /expand >}}
{{< /details >}}

## Shutdown

Expand Down
8 changes: 4 additions & 4 deletions site/content/3.12/develop/http-api/batch-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ DELETE /_api/collection/products HTTP/1.1
EOF
```

{{< expand title="Show output" >}}
{{< details summary="Show output" >}}
```bash
HTTP/1.1 200 OK
content-type: multipart/form-data
Expand Down Expand Up @@ -512,7 +512,7 @@ Content-Length: 39

--SomeBoundaryValue--
```
{{< /expand >}}
{{< /details >}}

Sending a batch request, setting the boundary implicitly. The server tries
to find the boundary at the beginning of the request body in this case.
Expand All @@ -536,7 +536,7 @@ DELETE _api/collection/nonexistent2 HTTP/1.1
EOF
```

{{< expand title="Show output" >}}
{{< details summary="Show output" >}}
```bash
HTTP/1.1 200 OK
content-type: unset
Expand Down Expand Up @@ -586,4 +586,4 @@ Content-Length: 101

--SomeBoundaryValue--
```
{{< /expand >}}
{{< /details >}}
4 changes: 2 additions & 2 deletions site/content/3.12/develop/http-api/monitoring/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ Example not generated because it changes on every run and returns up to 25MB of
curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/server/api-calls
```

{{< expand title="Show output" >}}
{{< details summary="Show output" >}}
```bash
HTTP/1.1 200 OK
X-Arango-Queue-Time-Seconds: 0.000000
Expand Down Expand Up @@ -1074,4 +1074,4 @@ Content-Length: 257
}
}
```
{{< /expand >}}
{{< /details >}}
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export OASIS_TOKEN='<TOKEN>'
./oasisctl list roles --organization-id <ID> --format json | jq -r '.[] | select(.predefined == true) | "**\(.description)** (`\(.id)`):\n\(.permissions | split(", ") | map("- `\(.)`\n") | join(""))"'
{{% /comment %}}

{{< expand title="List of predefined roles and their permissions" >}}
{{< details summary="List of predefined roles and their permissions" >}}

{{</* tip */>}}
The roles below are described following this pattern:
Expand Down Expand Up @@ -475,7 +475,7 @@ The roles below are described following this pattern:
- `iam.user.get-personal-data`
- `iam.user.update`

{{< /expand >}}
{{< /details >}}

### How to create a custom role

Expand Down
4 changes: 2 additions & 2 deletions site/content/3.13/develop/http-api/administration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ Example not generated because it would require a valid license to demonstrate th
curl --header 'accept: application/json' --dump - --data '"eyJncmFudCI6...(Base64-encoded license string)..."' -X PUT http://localhost:8529/_admin/license
```

{{< expand title="Show output" >}}
{{< details summary="Show output" >}}
```bash
HTTP/1.1 201 Created
content-type: application/json
Expand All @@ -1253,7 +1253,7 @@ x-content-type-options: nosniff
}
}
```
{{< /expand >}}
{{< /details >}}

## Shutdown

Expand Down
4 changes: 2 additions & 2 deletions site/content/3.13/develop/http-api/monitoring/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ Example not generated because it changes on every run and returns up to 25MB of
curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/server/api-calls
```

{{< expand title="Show output" >}}
{{< details summary="Show output" >}}
```bash
HTTP/1.1 200 OK
X-Arango-Queue-Time-Seconds: 0.000000
Expand Down Expand Up @@ -1074,4 +1074,4 @@ Content-Length: 257
}
}
```
{{< /expand >}}
{{< /details >}}
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,5 @@
{{- end }}

{{- $output := transform.Highlight $content.output $language }}
{{- $block := printf "%s" $output }}
{{- partial "shortcodes/expand.html" (dict
"context" $context
"content" $block
"open" "open"
"title" "Show output"
) }}
<details><summary>Show output</summary>{{ $context.Page.RenderString $output }}</details>
<br>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ $summary := .Get "summary" -}}
{{ if not $summary }}{{ errorf "Missing summary for %q shortcode at %s" .Name .Position }}{{ end -}}
<details><summary>{{ $summary | markdownify }}</summary>{{ .Inner | .Page.RenderString (dict "display" "block") }}</details>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,7 @@ Effective on {{ delimit . ", " " and " }} only.
{{ end }}

{{ with $option.longDescription }}
{{- partial "shortcodes/expand.html" (dict
"context" $context
"content" .
"open" "open"
"title" "Show details"
) }}
<details><summary>Show details</summary>{{ . | $context.Page.RenderString (dict "display" "block") }}</details>
{{ end }}

---
Expand Down
Loading