mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-13 06:35:52 +00:00
fix embed 2
This commit is contained in:
parent
313d811ad1
commit
8a0b9e0a1b
1 changed files with 29 additions and 14 deletions
|
|
@ -6,18 +6,28 @@ To help you illustrate your content, it can be sueful to add some type of visual
|
||||||
````{tab-item} Linking
|
````{tab-item} Linking
|
||||||
|
|
||||||
In Jupyter Book, you can embed a YouTube video using the `{iframe}` directive, ensuring you use the embed URL format.
|
In Jupyter Book, you can embed a YouTube video using the `{iframe}` directive, ensuring you use the embed URL format.
|
||||||
|
|
||||||
```md
|
```md
|
||||||
|
|
||||||
```{iframe} https://www.youtube.com/embed/watch?v=gbBsWo6em4c
|
```{iframe} https://www.youtube.com/embed/x2eonqw5M6o
|
||||||
:width: 700
|
---
|
||||||
:height: 400
|
width: 80%
|
||||||
|
align: center
|
||||||
|
name: my_linked_video
|
||||||
|
---
|
||||||
|
<caption>
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
For example, the above code cell, will result in the following video.
|
For example, the above code cell, will result in the following video.
|
||||||
|
|
||||||
```{iframe} https://www.youtube.com/embed/watch?v=gbBsWo6em4c
|
```{iframe} https://www.youtube.com/embed/x2eonqw5M6o
|
||||||
:width: 700
|
---
|
||||||
:height: 400
|
width: 80%
|
||||||
|
align: center
|
||||||
|
name: my_linked_video
|
||||||
|
---
|
||||||
|
<caption>
|
||||||
```
|
```
|
||||||
|
|
||||||
To link and display an online figure, you can use the `{figure}` directive, which also allows captions and references.
|
To link and display an online figure, you can use the `{figure}` directive, which also allows captions and references.
|
||||||
|
|
@ -25,18 +35,23 @@ To link and display an online figure, you can use the `{figure}` directive, whic
|
||||||
```md
|
```md
|
||||||
|
|
||||||
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
||||||
:width: 700
|
---
|
||||||
:height: 400
|
width: 80%
|
||||||
|
align: center
|
||||||
My new figure
|
name: my_linked_figure
|
||||||
|
---
|
||||||
|
<caption>
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
|
||||||
:width: 700
|
---
|
||||||
:height: 400
|
width: 80%
|
||||||
|
align: center
|
||||||
My new figure
|
name: my_linked_figure
|
||||||
|
---
|
||||||
|
<caption>
|
||||||
```
|
```
|
||||||
|
|
||||||
````
|
````
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue