Skip to content

Commit

Permalink
Try fixing line breaks on code examples
Browse files Browse the repository at this point in the history
Signed-off-by: ChrisChinchilla <[email protected]>
  • Loading branch information
ChrisChinchilla committed Oct 1, 2020
1 parent 721c94b commit 212d4ea
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
41 changes: 17 additions & 24 deletions docs/content/quickstart/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,7 @@ The `namespaceName` argument must match the namespace in the `local` section of
{{< tabs name="create_placement_namespace" >}}
{{% tab name="Command" %}}

<!-- TODO: Add jq -->
```json
curl -X POST {{% apiendpoint %}}database/create -d '{
"type": "local",
"namespaceName": "default",
"retentionTime": "12h"
}'
```
{{% codeinclude file="/static/quickstart/create-database.sh" language="shell" %}}

{{% /tab %}}
{{% tab name="Output" %}}
Expand Down Expand Up @@ -390,10 +383,10 @@ You need to encode the query below.
{{% /notice %}}

```shell
curl -X "POST" "{{% apiendpoint %}}query_range?
query=third_avenue&
start=$(date "+%s" -d "45 seconds ago")&
end=$(date "+%s")&
curl -X "POST" "{{% apiendpoint %}}query_range? \
query=third_avenue& \
start=$(date "+%s" -d "45 seconds ago")& \
end=$(date "+%s")& \
step=5s" | jq .
```

Expand All @@ -405,10 +398,10 @@ You need to encode the query below.
{{% /notice %}}

```shell
curl -X "POST" "{{% apiendpoint %}}query_range?
query=third_avenue&
start=$(date -v -45S "+%s")&
end=$(date "+%s")&
curl -X "POST" "{{% apiendpoint %}}query_range? \
query=third_avenue& \
start=$(date -v -45S "+%s")& \
end=$(date "+%s")& \
step=5s" | jq .
```

Expand Down Expand Up @@ -460,10 +453,10 @@ You need to encode the query below.
{{% /notice %}}

```shell
curl -X "POST" "{{% apiendpoint %}}query_range?
query=third_avenue > 6000
start=$(date "+%s" -d "45 seconds ago")&
end=$(date "+%s")&
curl -X "POST" "{{% apiendpoint %}}query_range? \
query=third_avenue > 6000 \
start=$(date "+%s" -d "45 seconds ago")& \
end=$(date "+%s")& \
step=5s" | jq .
```

Expand All @@ -475,10 +468,10 @@ You need to encode the query below.
{{% /notice %}}

```shell
curl -X "POST" "{{% apiendpoint %}}query_range?
query=third_avenue > 6000
start=$(date -v -45S "+%s")&
end=$(date "+%s")&
curl -X "POST" "{{% apiendpoint %}}query_range? \
query=third_avenue > 6000 \
start=$(date -v -45S "+%s")& \
end=$(date "+%s")& \
step=5s" | jq .
```

Expand Down
6 changes: 6 additions & 0 deletions docs/content/quickstart/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
curl -X "POST" "http://localhost:7201/api/v1/query_range?
query=third_avenue&
start=$(date -v -45S "+%s")&
end=$(date "+%s")&
step=5s" | jq .
6 changes: 6 additions & 0 deletions docs/static/quickstart/create-database.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
curl -X POST http://localhost:7201/api/v1/database/create -d '{
"type": "local",
"namespaceName": "default",
"retentionTime": "12h"
}' | jq .

0 comments on commit 212d4ea

Please sign in to comment.