Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit 1b991ed

Browse files
committed
Added code highlights
1 parent 91db066 commit 1b991ed

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

workshop/content/buildpipe/pipeascode/build/_index.en.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ pipeline.addStage({
4343
```
4444

4545
{{%expand "Click here to see how the entire file should look like" %}}
46-
```js
46+
47+
The highlighted code is the new addition:
48+
49+
{{< highlight js "hl_lines=44-68" >}}
4750
// lib/pipeline-stack.ts
4851

4952
import * as cdk from '@aws-cdk/core';
@@ -115,7 +118,7 @@ export class PipelineStack extends cdk.Stack {
115118

116119
}
117120
}
118-
```
121+
{{< / highlight >}}
119122
{{% /expand%}}
120123

121124
### Deploy the pipeline

workshop/content/buildpipe/pipeascode/deploy/_index.en.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ pipeline.addStage({
3232
```
3333

3434
{{%expand "Click here to see how the entire file should look like" %}}
35-
```js
35+
36+
The highlighted code is the new addition:
37+
38+
{{< highlight js "hl_lines=70-89" >}}
3639
// lib/pipeline-stack.ts
3740

3841
import * as cdk from '@aws-cdk/core';
@@ -125,7 +128,7 @@ export class PipelineStack extends cdk.Stack {
125128

126129
}
127130
}
128-
```
131+
{{< / highlight >}}
129132
{{% /expand%}}
130133

131134
### Deploy the pipeline

workshop/content/buildpipe/pipeascode/source/_index.en.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ pipeline.addStage({
3838
```
3939

4040
{{%expand "Click here to see how the entire file should look like" %}}
41-
```js
41+
42+
The highlighted code is the new addition:
43+
44+
{{< highlight js "hl_lines=16-41" >}}
4245
// lib/pipeline-stack.ts
4346

4447
import * as cdk from '@aws-cdk/core';
@@ -82,7 +85,7 @@ export class PipelineStack extends cdk.Stack {
8285
});
8386
}
8487
}
85-
```
88+
{{< / highlight >}}
8689
{{% /expand%}}
8790

8891
Since we already have the CodeCommit repository, we don't need to create a new one, we just need to import it using the repository name.

0 commit comments

Comments
 (0)