Skip to content

Bad Youtube video formatting #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
swheaton opened this issue Feb 28, 2025 · 1 comment
Open

Bad Youtube video formatting #34

swheaton opened this issue Feb 28, 2025 · 1 comment
Milestone

Comments

@swheaton
Copy link
Contributor

Weird formatting issue with a youtube video. Noticed on dataset versioning page, but might be present elsewhere that has youtube videos

page: https://beta-docs.voxel51.com/teams/dataset_versioning/

Image
@thesteve0 thesteve0 added this to the launch of MVP milestone Mar 8, 2025
@philip
Copy link

philip commented Apr 20, 2025

It appears there are two main options here:

  • Use iframe, similar to how it's done in the current docs
  • Use the mkdocs-video plugin (but, the final release was March 2023 as it's now archived)

So the iframe is fine and simple but requires adding CSS. The following is in source/enterprise/dataset_versioning.rst:

  <div style="margin-top: 20px; margin-bottom: 20px">
    <iframe id="youtube" src="https://www.youtube.com/embed/DKUkiDQVDqA?rel=0" frameborder="0" allowfullscreen>
    </iframe>
  </div>

The site's custom.css improves it with:

#youtube {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

So I think the iframe reference in dataset_versioning.md should be similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants