Put π± Cat Emojis in your Documents!
Takanori Suzuki
PyCon US 2025 / 2025 May 18
Do you like cats? π±
IMO, Many programmers like Cats
π§βπ» π©βπ» β€οΈ π±
For example
Our Keynote Speaker is also like cats π

I like cats too π
But I like Ferrets even more! π



About Cat Emojis π±
Cat Emojis for Slack & Discord
Cat Emojis are Created and Distributed by Shikamatsu-san(@shi_ka_ma_tsu)

Cat Emojis for Slack & Discord
I use it every day in company / community Slack


Cat Emojis for Slack & Discord
You can download Cat Emojis!!

Cat Emojis in Documents π± π
Motivation
Use Cat Emojis on My Slides
Can do it by Copy & Paste Emoji image

Programmer is Lazy
Copy & Paste lots of Emojis is Boring
We have Python
Simplify the Boring Stuff with Python
sphinx-nekochan
(βNekochanβ is Cat in Japanese)
sphinx-nekochan
Sphinx extension for adding Cat emoji to docs

Sphinx ποΈβπ¨οΈ
Easy to create intelligent and beautiful docs
docs.python.org using Sphinx

Get Started
(env) % pip install sphinx-nekochan # sphinx is also install
(env) % sphinx-quickstart # generates Sphinx base files
add extension in conf.py
extensions = [
...
"sphinx_nekochan",
]
Get Started
Use
nekochan
role in the document
I love {nekochan}`beer`
I love :nekochan:`beer`
Build html documents
(env) % make html
(env) % open build/html/index.html
Get Started
Cat Emoji displayed in the document!! π

Find the Name of Cat Emoji π

sphinx-nekochan on slides π»
sphinx-revealjs
Sphinx extension to generate Reveal.js slides
sphinx-revealjs with sphinx-nekochan
Same code will display Cat Emoji
I love {nekochan}`beer`
I love :nekochan:`beer`
I love
Customize emoji 
Customize emoji Height
[3]
* Big bear {nekochan}`bear;1.5em` default {nekochan}`bear`
* Huge hot-sprint nekochan {nekochan}`hot-spring;128px`
* Big bear :nekochan:`bear;1.5em` default :nekochan:`bear`
* Huge hot-sprint nekochan :nekochan:`hot-spring;128px`
Big bear
default
Huge hot-sprint nekochan
https://sphinx-nekochan.readthedocs.io/#customize-emoji-height-and-alt-text
Transform emoji
[4]
* {nekochan}`skip` rotate {nekochan}`skip;;;rotate-90`
* {nekochan}`yoshi` flip horizontal
{nekochan}`yoshi;;;flip-horizontal`
* :nekochan:`skip` rotate :nekochan:`skip;;;rotate-90`
* :nekochan:`yoshi` flip horizontal
:nekochan:`yoshi;;;flip-horizontal`
rotate
flip horizontal
Enjoy sphinx-nekochan 
-
Please GitHub star if you like it!
Thank you 
sphinx-nekochan.readthedocs.io
takanory takanory takanory takanory