Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

attakei-lab/sphinxcontrib-oembed

Repository files navigation

sphinxcontrib-oembed

Embed HTML content by URL from eEmbed consumer

Caution!

DEPRECATED

This extension is stopped developmnent. oEmbedPy contains same features of it and is more useful.

Please use oEmbedPy instead.

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

About

Embed HTML content by URL from eEmbed consumer

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages