Sphinx Emoji Codes

0.3.2 ยท active ยท verified Thu Apr 16

Sphinx Emoji Codes (sphinxemoji) is a Sphinx extension that enables the use of emoji shortcodes (e.g., |:smile:|) directly within your Sphinx documentation. It is currently at version 0.3.2 and primarily releases updates to maintain compatibility with new Sphinx versions or to fix bugs.

Common errors

Warnings

Install

Imports

Quickstart

To quickly enable `sphinxemoji`, add `'sphinxemoji.sphinxemoji'` to your `extensions` list in `conf.py`. Then, you can use emoji shortcodes wrapped in bars (e.g., `|:smile:|`) directly in your reStructuredText or MyST files. An optional `sphinxemoji_style` configuration can be added to `conf.py` to use a consistent emoji set like Twemoji.

# conf.py
extensions = [
    'sphinxemoji.sphinxemoji',
]

# Your RST or MyST file (e.g., index.rst or index.md)
# This text includes a smiley face |:smile:| and a snake too! |:snake:|
# Don't you love it? |:heart_eyes:|

# Optional: Set a consistent emoji style (e.g., Twemoji)
# sphinxemoji_style = 'twemoji'

view raw JSON โ†’