atsphinx-color-text¶
Overview¶
This is Sphinx extension to render colored-text by HTML builder.
Getting started¶
Thi is published on PyPI.
You can install by pip
command.
pip install atsphinx-color-text
Insert extension into your conf.py
to enable it.
extensions = [
"atsphinx.color_text",
]
Usage¶
You can use this very easy.
Write color:~
role into your reStructuredText source.
Example¶
sphinx-revealjs is presentation library for
Pythonista using reStructuredText and :color:red:`Sphinx`.
Builder generates html from this source.
sphinx-revealjs is presentation library for Pythonista using reStructuredText and Sphinx.
Supporting colors¶
atsphinx-color-text
refers Standard colors from MDN to implement named color roles.
role |
color code |
---|---|
|
#000000 |
|
#c0c0c0 |
|
#808080 |
|
#ffffff |
|
#800000 |
|
#ff0000 |
|
#800080 |
|
#ff00ff |
|
#008000 |
|
#00ff00 |
|
#808000 |
|
#ffff00 |
|
#000080 |
|
#0000ff |
|
#008080 |
|
#00ffff |