Embed HTML content by URL from eEmbed consumer
Project description
Embed HTML content by URL from eEmbed consumer
Overview
This is Sphinx extension to provide easy embed some third-party websites content.
Example for embed tweet from Twitter:
In defaults, you use raw directive, get and paste blockquuote and script tags from Twitter Publish.
With this, you use oembed and paste tweet URL only!
Installation
This is registered in PyPI.
pip install sphinxcontrib-oembed
Usage
Add this extension into your conf.py of Sphinx.
extensions = [
"sphinxcontrib.oembed",
]
# You can change User-agent
# Default is sphinxcontrib-oembed/{ext-version}
obmed_useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
Changes
v0.2.1
Published on PyPI
v0.2.0
Enable to confiugre User-agent when request oEmbed providers
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinxcontrib-oembed-0.2.2.tar.gz
.
File metadata
- Download URL: sphinxcontrib-oembed-0.2.2.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa2d99089c13ca41bb390b71db5dd7cf202b0634ba9ca5d397a78257bbeb92de |
|
MD5 | a964035f054664cb680302f2b5c7e0b1 |
|
BLAKE2b-256 | ed3ca463050c6895e502ffc925d560a3a4f056f7642d1575195cd12098128b0c |
File details
Details for the file sphinxcontrib_oembed-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: sphinxcontrib_oembed-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e28bc10a97411a8e0222c4a5d75afbde7fad9a535bb63eb498a370ca9731a6 |
|
MD5 | 41574a3a30ef5d704a29d3ab67465b82 |
|
BLAKE2b-256 | f504c97384acdd2118eb51ed00a125de47661ad545949303f2645aa036d2bf37 |