A Sphinx extension for adding the Nekochan(cat) emoji to documents.
See the sphinx-nekochan documantation for more details.
You can install sphinx-nekochan
with pip
:
pip install sphinx-nekochan
In your conf.py
configuration file, add sphinx_nekochan
to your extensions list:
extensions = [
...
"sphinx_nekochan",
...
]
When you use the nekochan
roll or directive, you will see any nekochan emoji.
- markdown
Welcome to nekochan emoji {nekochan}`banzai` world!!
* Enjoy nekochan emoji {nekochan}`choo-choo-train`
* I love {nekochan}`beer`
```{nekochan} melty
```
- reStructuredText
Welcome to nekochan emoji :nekochan:`banzai` world!!
* Enjoy nekochan emoji :nekochan:`choo-choo-train`
* I love :nekochan:`beer`
.. nekochan:: melty
You can specify height and alt text with a semicolon(;
) after the name of the nekochan
role.
- markdown
* Big bear nekochan {nekochan}`kuma-nya;2em`
* Huge hot-sprint nekochan {nekochan}`hot-spring;128px`
* Customize alt text for emoji {nekochan}`gohan-taberu;3em;Nekochan eating rice ball`
```{nekochan} lgtm
:alt: Looks Good To Me
:height: 3em
```
- reStructuredText
* Big bear nekochan :nekochan:`kuma-nya;2em`
* Huge hot-sprint nekochan :nekochan:`hot-spring;128px`
* Customize alt text for emoji :nekochan:`gohan-taberu;3em;Nekochan eating rice ball`
.. nekochan:: lgtm
:alt: Looks Good To Me
:height: 3em
Also, you can specify transform option with a semicolon(;
) after the alt text of the nekochan
role.
- markdown
* Skip {nekochan}`skip-nya;2em` rotated 90 degrees clockwise {nekochan}`skip-nya;2em;;rotate-90`
* Flip the left and right side of the {nekochan}`yoshi;2em` Yoshi emoji {nekochan}`yoshi;2em;;flip-horizontal`
```{nekochan} snake
:transform: flip-vertical
:height: 2em
```
- reStructuredText
* Skip :nekochan:`skip-nya;2em` rotated 90 degrees clockwise :nekochan:`skip-nya;2em;;rotate-90`
* Flip the left and right side of the :nekochan:`yoshi;2em` Yoshi emoji :nekochan:`yoshi;2em;;flip-horizontal`
.. nekochan:: snake
:transform: flip-vertical
:height: 2em
- sphinx-nekochan is licensed under the MIT License.
- Please refer to the following guidelines for using Nekochan emojis.