Work as Sphinx extension¶
You can embed HTML content from oEmbed API.
Set up¶
extensions = [
# After extensions
"oembedpy.ext.sphinx",
]
Usage¶
Write oembed
directive into your document.
.. oembed:: CONTENT-URL
When it build, embed iframe
content into your HTML.
Configuration¶
Spec of directive¶
Example¶
Simple using¶
.. oembed:: https://www.youtube.com/watch?v=Oyh8nuaLASA
With options¶
.. oembed:: https://www.youtube.com/watch?v=Oyh8nuaLASA
:maxwidth: 640
:maxheight: 640
Gallery¶
Bluesky¶
.. oembed:: https://bsky.app/profile/attakei.dev/post/3kqigze6cks2z
Mi Smart Band 6のバンドが切れたので、いい機会だからとXiaomi Smart Band 8 Proに替えた。 今は充電しつつ、Zepp LifeからMi fitnessへデータ転送させてる。
— kAZUYA kAKEI (@attakei.dev) 2024-04-19T13:41:27.409Z