https://github.com/robpol86/sphinx-imgur
Embed Imgur images and albums in Sphinx documents/pages.
https://github.com/robpol86/sphinx-imgur
imgur sphinx sphinx-extension
Last synced: 3 months ago
JSON representation
Embed Imgur images and albums in Sphinx documents/pages.
- Host: GitHub
- URL: https://github.com/robpol86/sphinx-imgur
- Owner: Robpol86
- License: bsd-2-clause
- Created: 2015-08-01T05:46:28.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T13:06:22.000Z (over 2 years ago)
- Last Synced: 2025-01-31T14:19:07.131Z (4 months ago)
- Topics: imgur, sphinx, sphinx-extension
- Language: Python
- Homepage: https://sphinx-imgur.readthedocs.io
- Size: 318 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# sphinx-imgur
Embed [Imgur](https://imgur.com) images and albums in Sphinx documents/pages.
* Python 3.6, 3.7, 3.8, and 3.9 supported on Linux, macOS, and Windows.
📖 Full documentation: https://sphinx-imgur.readthedocs.io
[![Github-CI][github-ci]][github-link]
[![Coverage Status][codecov-badge]][codecov-link]
[![Documentation Status][rtd-badge]][rtd-link]
[![Code style: black][black-badge]][black-link]
[![PyPI][pypi-badge]][pypi-link]
[![PyPI Downloads][pypi-dl-badge]][pypi-dl-link][github-ci]: https://github.com/Robpol86/sphinx-imgur/actions/workflows/ci.yml/badge.svg?branch=main
[github-link]: https://github.com/Robpol86/sphinx-imgur/actions/workflows/ci.yml
[codecov-badge]: https://codecov.io/gh/Robpol86/sphinx-imgur/branch/main/graph/badge.svg
[codecov-link]: https://codecov.io/gh/Robpol86/sphinx-imgur
[rtd-badge]: https://readthedocs.org/projects/sphinx-imgur/badge/?version=latest
[rtd-link]: https://sphinx-imgur.readthedocs.io/en/latest/?badge=latest
[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg
[black-link]: https://github.com/ambv/black
[pypi-badge]: https://img.shields.io/pypi/v/sphinx-imgur.svg
[pypi-link]: https://pypi.org/project/sphinx-imgur
[pypi-dl-badge]: https://img.shields.io/pypi/dw/sphinx-imgur?label=pypi%20downloads
[pypi-dl-link]: https://pypistats.org/packages/sphinx-imgur## Quickstart
To install run the following:
```bash
pip install sphinx-imgur
```To use in Sphinx simply add to your `conf.py`:
```python
extensions = ["sphinx_imgur.imgur"]
```And in your Sphinx documents:
```rst
.. imgur:: 611EovQ
```Or to use Imgur's embed feature with an album:
```rst
.. imgur-embed:: a/9YZHA
```