A Sphinx extension for adding the Nekochan(cat) emoji to documents.
Project description
sphinx-nekochan
A Sphinx extension for adding the Nekochan(cat) emoji to documents.
See the sphinx-nekochan documantation for more details.
Installation
You can install sphinx-nekochan with pip:
pip install sphinx-nekochan
Enable extension
In your conf.py configuration file, add sphinx_nekochan to your extensions list:
extensions = [
...
"sphinx_nekochan",
...
]
Use nekochan role or directive
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
Customize emoji height and alt text
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
Transform emoji
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
License
- sphinx-nekochan is licensed under the MIT License.
- Please refer to the following guidelines for using Nekochan emojis.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_nekochan-0.3.4.tar.gz.
File metadata
- Download URL: sphinx_nekochan-0.3.4.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6128305a4117adc57af7b24385bcb45eb5e69f36c8792929cdcc8350e9c72d01
|
|
| MD5 |
98ac5c3af016cab3cc1af8c0f7153033
|
|
| BLAKE2b-256 |
e50dc04bb8f84349435dd522a990a4a16595857993652d9402ca14e0598df648
|
Provenance
The following attestation bundles were made for sphinx_nekochan-0.3.4.tar.gz:
Publisher:
workflow.yml on takanory/sphinx-nekochan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_nekochan-0.3.4.tar.gz -
Subject digest:
6128305a4117adc57af7b24385bcb45eb5e69f36c8792929cdcc8350e9c72d01 - Sigstore transparency entry: 189338446
- Sigstore integration time:
-
Permalink:
takanory/sphinx-nekochan@3faf06b3923116d3d2d9272cdf05a5e99e697ebf -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/takanory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@3faf06b3923116d3d2d9272cdf05a5e99e697ebf -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_nekochan-0.3.4-py3-none-any.whl.
File metadata
- Download URL: sphinx_nekochan-0.3.4-py3-none-any.whl
- Upload date:
- Size: 5.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0654c7ca14ffdbabf1a0ac75da7c0872bd374bb0ab21a3a8a4bdcf9745333788
|
|
| MD5 |
a07eb63b25a46266097df6ec9ad949ff
|
|
| BLAKE2b-256 |
845841b5bca9f49b6a4dec9548eaaafb07323a1a9d8cc4ddd4d24cd38a72fb8c
|
Provenance
The following attestation bundles were made for sphinx_nekochan-0.3.4-py3-none-any.whl:
Publisher:
workflow.yml on takanory/sphinx-nekochan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_nekochan-0.3.4-py3-none-any.whl -
Subject digest:
0654c7ca14ffdbabf1a0ac75da7c0872bd374bb0ab21a3a8a4bdcf9745333788 - Sigstore transparency entry: 189338449
- Sigstore integration time:
-
Permalink:
takanory/sphinx-nekochan@3faf06b3923116d3d2d9272cdf05a5e99e697ebf -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/takanory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@3faf06b3923116d3d2d9272cdf05a5e99e697ebf -
Trigger Event:
push
-
Statement type: