Skip to content

A simple sphinx extension to add emoji favicon to your sphinx site.

License

Notifications You must be signed in to change notification settings

DeepPSP/sphinx-emoji-favicon

Repository files navigation

Sphinx emoji favicon

PyPI codecov pytest license downloads GitHub Release Date - Published_At GitHub commits since latest release (by SemVer including pre-releases)

A simple sphinx extension to add emoji favicon to your sphinx site.

This extension is inspired by sphinx-favicon and streamlit.

Other related projects:

Installation

pip install sphinx-emoji-favicon

Usage

Add sphinx_emoji_favicon to your conf.py:

extensions = [
    ...
    "sphinx_emoji_favicon",
    ...
]

Then add the following to your conf.py:

emoji_favicon = "🦄"
# or emoji_favicon = ":unicorn:"
# or emoji_favicon = ":独角兽:"

or with additional options:

emoji_favicon = {
    "emoji": ":lion:",  # "Leo" in English
    "language": "fr",
    "twemoji_cdns": "https://cdn.staticfile.org/twemoji/",  # or with version and/or assets type: "https://cdn.staticfile.org/twemoji/13.1.0/72x72/"
}