Skip to main content

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

When you use the nekochan roll, 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`
  • reStructuredText
Welcome to nekochan emoji :nekochan:`banzai` world!!

* Enjoy nekochan emoji :nekochan:`choo-choo-train`
* I love :nekochan:`beer`

nekochan emoji with text

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`
  • 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`

customize emoji height and alt text

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`
  • 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`

Transform emoji

License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_nekochan-0.3.0.tar.gz (5.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_nekochan-0.3.0-py3-none-any.whl (5.4 MB view details)

Uploaded Python 3

File details

Details for the file sphinx_nekochan-0.3.0.tar.gz.

File metadata

  • Download URL: sphinx_nekochan-0.3.0.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

Hashes for sphinx_nekochan-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4f68ec5be852cbdd06b9e1d1208cff610d7422a247d57b35ea2398877525602e
MD5 c57002c590dea8da5b86f3e60706c327
BLAKE2b-256 14a408f1bbda6012c108e22edd5b7a4755c3d968b867743c96ad0ae2fe7a75f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_nekochan-0.3.0.tar.gz:

Publisher: workflow.yml on takanory/sphinx-nekochan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_nekochan-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_nekochan-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d72befabadf9c7183d6ea68f566b6975a18b0192e0a9c4744a5b00728efa1fd
MD5 3403ef4b8f8efc2c775e72dd71a4f3f0
BLAKE2b-256 864090f47580bf7adf4616422eeca5dde261c72924ad82a677c714185e9ef4cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_nekochan-0.3.0-py3-none-any.whl:

Publisher: workflow.yml on takanory/sphinx-nekochan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page