Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-oembed-0.2.2.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

sphinxcontrib_oembed-0.2.2-py2.py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page