Skip to content

Commit 14b386e

Browse files
dfanglalexrashed
authored andcommitted
format more commands to the shortcode
1 parent b498c0a commit 14b386e

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

Diff for: content/en/docs/Local AWS Services/kinesis/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Kinesis is shipped with the LocalStack Community version and is [extensively sup
1313
Trying to run the example applications from the [official AWS developer guide](https://docs.aws.amazon.com/streams/latest/dev/examples.html) against LocalStack is a great place to start.
1414
Assuming you have `awslocal` installed you can also try out the following commands:
1515

16-
```bash
16+
{{< command >}}
1717
$ awslocal kinesis create-stream --stream-name samplestream --shard-count
1818

1919
$ awslocal kinesis list-streams
@@ -29,7 +29,7 @@ $ awslocal kinesis put-record --cli-binary-format raw-in-base64-out --stream-nam
2929
"SequenceNumber": "49622467803485029265018102167378141645049970239670845458",
3030
"EncryptionType": "NONE"
3131
}
32-
```
32+
{{< / command >}}
3333

3434
## Kinesis backend providers
3535

Diff for: content/en/docs/Local AWS Services/s3/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ S3 is shipped with the LocalStack Community version and is [extensively supporte
1212

1313
Assuming you have [`awslocal`]({{< ref "aws-cli" >}}) installed you can also try the following commands:
1414

15-
```bash
15+
{{< command >}}
1616
$ awslocal s3api create-bucket --bucket sample-bucket
1717

1818
{
@@ -38,7 +38,7 @@ $ awslocal s3api put-object --bucket sample-bucket --key index.html --body index
3838
{
3939
"ETag": "\"d41d8cd98f00b204e9800998ecf8427e\""
4040
}
41-
```
41+
{{< / command >}}
4242

4343
When working with the `SERVICES` environment variable, please make sure to include `s3` in the list of services.
4444
For instance, to load the S3, SQS, and Kinesis service you'd pass the variable as `SERVICES=s3,sqs,kinesis`.

Diff for: content/en/docs/Local AWS Services/sqs/index.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Trying to run the examples in the [official AWS developer](https://docs.aws.amaz
1212

1313
Assuming you have [`awslocal`]({{< ref "aws-cli" >}}) installed you can also try the following commands:
1414

15-
```bash
15+
{{< command >}}
1616
$ awslocal sqs create-queue --queue-name sample-queue
1717
{
1818
"QueueUrl": "http://localhost:4566/000000000000/sample-queue"
@@ -26,12 +26,11 @@ $ awslocal sqs list-queues
2626
}
2727

2828
$ awslocal sqs send-message --queue-url http://localhost:4566/00000000000/sample-queue --message-body test
29-
3029
{
3130
"MD5OfMessageBody": "098f6bcd4621d373cade4e832627b4f6",
3231
"MessageId": "74861aab-05f8-0a75-ae20-74d109b7a76e"
3332
}
34-
```
33+
{{< / command >}}
3534

3635
When working with the `SERVICES` environment variable, please make sure to include `sqs` in the list of services.
3736
For instance, to load the DynamoDB, SQS, and Kinesis service you'd pass the variable as `SERVICES=dynamodb,sqs,kinesis`.

Diff for: content/en/docs/Understanding LocalStack/configuration.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ description: >
88
LocalStack allows for many different configuration options.
99
You can pass these via environment variables, e.g., like the following:
1010

11-
```bash
12-
SERVICES=kinesis,lambda,sqs,dynamodb DEBUG=1 localstack start
13-
```
11+
{{< command >}}
12+
$ SERVICES=kinesis,lambda,sqs,dynamodb DEBUG=1 localstack start
13+
{{< / command >}}
1414

1515
## Core
1616

Diff for: layouts/shortcodes/command.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/* Command shortcode. Current limitations: will interpret comments as root command (# prefixes will not be selectable, use ## if this is necessary)*/}}
22

33
{{ $inner := trim .Inner "\n" }}
4-
{{ $inner = replaceRE `(?m)^\s*((?:\$|#)\s)` "###CUSTOM_PREFIX###$1###CUSTOM_PREFIX_END###" $inner}}
4+
{{ $inner = replaceRE `(?m)^ *((?:\$|#) )` "###CUSTOM_PREFIX###$1###CUSTOM_PREFIX_END###" $inner}}
55
{{ $options := "" }}
66
{{ with .Get 0 }}
77
{{ $options = . }}

0 commit comments

Comments
 (0)