Skip to content

Commit 601d1cd

Browse files
author
Carlos Santana
authored
Youtube videos (#464)
* make youtube videos play in website embedded Signed-off-by: Carlos Santana <csantana23@gmail.com> * make youtube video play Signed-off-by: Carlos Santana <csantana23@gmail.com> * fix spell check for youtube video iframe Signed-off-by: Carlos Santana <csantana23@gmail.com>
1 parent 20d9504 commit 601d1cd

File tree

10 files changed

+26
-51
lines changed

10 files changed

+26
-51
lines changed

cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
"buildah",
8383
"skopeo",
8484
"toolkit's",
85-
"mynamespace"
85+
"mynamespace",
86+
"autoplay",
87+
"allowfullscreen"
8688
],
8789
// flagWords - list of words to be always considered incorrect
8890
// This is useful for offensive words and common spelling errors.

docs/adopting/best-practices/devops.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
This short video introduces the concepts of DevOps with Red Hat OpenShift:
66

7-
Click the image below to launch the video
8-
9-
[!["DevOps concepts with Red Hat OpenShift`"](http://img.youtube.com/vi/GOPWObjFTsI/0.jpg)](https://youtu.be/GOPWObjFTsI "DevOps concepts with Red Hat OpenShift"){: target=_blank}
7+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/GOPWObjFTsI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
108

119
## Continuous Delivery
1210

docs/contribute/documentation.md

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -121,29 +121,18 @@ External links can also use attribute lists to control behaviors, such as open i
121121
[MkDocs](http://mkdocs.org){: target="_blank" .external }
122122
```
123123

124+
!!!info
125+
You can use `{: target=_blank}` to create clickable images that launch to another site: `[![Image description](Image URL)](target URL "hover text"){: target=_blank}`
126+
124127
#### YouTube videos
125128

126-
It is not possible to embed a YouTube video and have it play in place using pure markdown. You can use HTML to embed a video:
129+
It is possible to embed a YouTube video and have it play in place using pure markdown. You can use HTML to embed a video:
127130

128131
```html
129-
<iframe width="560" height="315" src="https://www.youtube.com/embed/u3PTRqkd94k" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
130-
```
131-
132-
but you can use a link that will open the video in a new browser tab using pure markdown:
133-
134-
```markdown
135-
[![alt-content](img URL)](video URL "video title"){: target="_blank"}
132+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/V-BFLaPdoPo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
136133
```
137134

138-
where:
139-
140-
- alt-content is the content used if the image cannot be displayed by the browser
141-
- img URL is the URL for the thumbnail image for the video. For YouTube this is usually `http://img.youtube.com/vi/<video ID>/0.jpg`
142-
- video URL is the URL used to launch the video in a new tab (this can be found by opening the video on YouTube and capturing the URL from the browser address bar - this also provides the video ID to be used in the image). It typically looks like `https://youtu.be/u3PTRqkd94k` or `https://www.youtube.com/watch?v=u3PTRqkd94k`
143-
- video title is a string that is displayed to the viewer when they hover over the video image
144135

145-
!!!info
146-
You can also use the same technique to create clickable images that launch to another site: `[![Image description](Image URL)](target URL "hover text"){: target=_blank}`
147136

148137
### Tabs
149138

@@ -278,15 +267,15 @@ To use inline you simply enclose the text using a single back quote **\`** chara
278267

279268
When you want to include a block of code you use a *fence*, which is 3 back quote character at the start and end of the block. After the opening quotes you should also specify the content type contained in the block.
280269

281-
**\`\`\` shell**
282-
**oc get pods**
283-
**\`\`\`**
270+
**\`\`\` shell**
271+
**oc get pods**
272+
**\`\`\`**
284273

285274
which will produce:
286275

287-
``` shell
288-
oc get pods
289-
```
276+
``` shell
277+
oc get pods
278+
```
290279

291280
Notice that the block automatically gets the *copy to clipboard* link to allow easy copy and paste.
292281

docs/learning/devops.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
This short video introduces the concepts of DevOps with Red Hat OpenShift:
66

7-
Click the image below to launch the video
8-
9-
[!["DevOps concepts with Red Hat OpenShift`"](http://img.youtube.com/vi/GOPWObjFTsI/0.jpg)](https://youtu.be/GOPWObjFTsI "DevOps concepts with Red Hat OpenShift"){: target=_blank}
7+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/GOPWObjFTsI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
108

119
## Continuous Delivery
1210

@@ -60,9 +58,9 @@ For the full end-to-end build and delivery process, both the CI and CD pipelines
6058
!!!Note
6159
It is also possible to trigger a process when a new image is available in the image registry or a new artifact is available to the artifact management system.
6260

63-
In this case, the CI process could be split into two parts:
64-
65-
1. create the container image and artifacts, and
61+
In this case, the CI process could be split into two parts:
62+
63+
1. create the container image and artifacts, and
6664
2. update the GitOps repo with the available artifacts.
6765

6866
4. Changes to the GitOps repository trigger the CD pipeline to run

docs/overview/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Cloud-Native Toolkit is an open-source collection of assets that provide an environment for developing
66
cloud-native applications for deployment within Red Hat OpenShift and Kubernetes. It embodies IBM Garage Method principles and practices for consistently developed applications, incorporating best practices that increase developer velocity for efficient delivery of business value.
77

8-
<iframe width="640" height="360" src="https://www.youtube-nocookie.com/embed/u3PTRqkd94k?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
8+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/u3PTRqkd94k" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
99

1010
## Cloud-Native Toolkit objectives
1111

docs/resources/ibm-cloud/access-control.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ This video presentation describes the IAM concepts, shows a demonstration, and i
1414
- 26:00 -- Demonstration
1515
- 46:00 -- Q&A
1616

17-
Click the image below to launch the video
18-
19-
[!["IBM Cloud Resources Groups"](http://img.youtube.com/vi/eayMGvkLZmI/0.jpg)](https://youtu.be/eayMGvkLZmI "IBM Cloud Resources Groups"){: target=_blank}
17+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/eayMGvkLZmI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
2018

2119
This article explains the concepts described in the video. You can access the presentation in the [Office Hours](https://ibm.box.com/v/Office-Hours) folder in Box. The scripts described in the [reference section](../../reference/iteration-zero/terraform.md){: target=_blank}.
2220

@@ -202,6 +200,4 @@ This video presentation shows how to perform this process:
202200
- 13:16 -- Configure Account
203201
- 27:44 -- Demo the access groups
204202

205-
Click the image below to launch the video
206-
207-
[!["Configure an IBM Cloud account using IAM"](http://img.youtube.com/vi/EF-gN0WRhE8/0.jpg)](https://youtu.be/EF-gN0WRhE8 "Configure an IBM Cloud account using IAM"){: target=_blank}
203+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/EF-gN0WRhE8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

docs/resources/workshop/appmod.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
<!--- cSpell:ignore wfish rbarcia appmod -->
44

5-
Click on image below to launch video:
6-
7-
[!["Workshop: App Modernization"](http://img.youtube.com/vi/ss9joPm2M1U/0.jpg)](https://youtu.be/ss9joPm2M1U "Workshop: App Modernization"){: target=_blank}
5+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/ss9joPm2M1U" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
86

97
This section will cover:
108

docs/resources/workshop/cd.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
Promote an Application using CD with GitOps and ArgoCD
44

5-
Click on image below to launch video:
6-
7-
[!["Workshop: CD/GitOps with ArgoCD"](http://img.youtube.com/vi/Fr85xbcM_es/0.jpg)](https://youtu.be/Fr85xbcM_es "Workshop: CD/GitOps with ArgoCD"){: target=_blank}
5+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/Fr85xbcM_es" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
86

97
1. Prerequisites
108
- Complete lab [Deploy an Application using CI Pipelines with Tekton](ci.md).

docs/resources/workshop/ci.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
<!--- cSpell:ignore userx -->
44

5-
Click on image below to launch video:
6-
7-
[!["Workshop: CI Pipelines with Tekton"](http://img.youtube.com/vi/V-BFLaPdoPo/0.jpg)](https://youtu.be/V-BFLaPdoPo "Workshop: CI Pipelines with Tekton"){: target=_blank}
5+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/V-BFLaPdoPo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
86

97
1. Prerequisites
108
- The instructor should [Setup Workshop Environment](setup.md)

docs/resources/workshop/inventory.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
Deploy a 3 tier Microservice using React, Node.js, and Java
44

5-
Click on image below to launch video:
6-
7-
[!["Workshop: Microservice Inventory App"](http://img.youtube.com/vi/gvuJi7qEZck/0.jpg)](https://youtu.be/gvuJi7qEZck "Workshop: Microservice Inventory App"){: target=_blank}
5+
<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/gvuJi7qEZck" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
86

97
1. Prerequisites
108
- The instructor should [Setup Workshop Environment](setup.md)

0 commit comments

Comments
 (0)