Skip to content

Accessibility

10 6

Since 0.0.68, Zensical supports using an iframe or video files: video. Some additional documentation is here: mkdocs-video

To enable the plugin using zensical.toml:

[project.plugins.mkdocs-video]

The previous approach involved using HTML, so you'd need to include something like this:

  <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/isoLnspA-1E" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen title="What is Logic - Youtube video" aria-label="Embedded YouTube video: What is Logic course introduction"></iframe>

But now you can do the following:

![type:video](https://www.youtube.com/embed/isoLnspA-1E?si=eEX46BPl-QRVQxq_)

Note that you need to grab the embed link.

In addition, you can add global styling to the videos in .toml file (note the use of "=" instead of ":"):

[project.plugins.mkdocs-video]
css_style = {"position"= "relative", "width"= "75%", "height"= "22.172vw"}

Here is an example output: