Embed YouTube video in Documenter?

Is it possible to embed a youtube video in a Documenter generated page?

Thank you.

You should be able to put the required HTML in a Documenter @raw html block.

7 Likes

Almost there. For some reason it seems that the height of the video is being ignored, and it looks a little odd. For example:


I am using this to embed the video (the default youtube link). Any idea why the video is appearing without the proper height?


# Videos

## Cellulose foam 

### With non-hydrolyzed fibers (Micro-CT)

```@raw html
<center>
<iframe width="560" height="315" src="https://www.youtube.com/embed/xZg-A2NX7hU" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</center>
1 Like

Setting the height with style="height:315px" worked (no idea why). This worked fine, then:

```@raw html
<center>
<iframe width="500" style="height:315px" src="https://www.youtube.com/embed/xZg-A2NX7hU" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</center>
3 Likes

Helps with rendered Pluto notebooks as well…