在Sphinx我知道你可以做到:
.. raw:: html
<div style="margin-top:10px;">
<iframe width="560" height="315" src="http://www.youtube.com/embed/_EjisXtMy_Y" frameborder="0" allowfullscreen></iframe>
</div>
在pypi ,有什么办法吗?
youtube 视频怎么样?
最佳答案
我不认为你可以在 pypi 上嵌入随机 html,我很高兴你不能。 Pypi 应该保留为 Python 包索引,而不是 geocities 克隆。
如果您真的需要在您的包裹页面上放一个 Youtube 视频,您可以使用标准的重组文本放一张带有 Youtube 视频链接的图片:
.. image:: http://example.com/image-with-the-first-frame.png
:target: http://www.youtube.com/your-video
关于python - 在 PyPi 包页面上的重组文本中嵌入 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8792817/