add directive for fontawesome in sphinx
Project description
sphinx fontawesome
##################
It is a extension for sphinx.
Add directive for use fontawesome
Installation
------------
::
pip install sphinx_fontawesome
Or
::
git clone https://github.com/fraoustin/sphinx_fontawesome.git
cd sphinx_fontawesome
python setup.py install
Use
---
In your conf.py
::
import sphinx_fontawesome
extensions = ['sphinx_fontawesome']
In your rst file, you can use
* directive
::
.. fa:: check
* role
::
:fa:`check`
:fa:`check lg`
:fa:`square-o`
* substitution
::
|check|
|square-o|
If you have changed the value of rst_prolog in your conf.py, and you'd like to use subsitution you
can add ``sphinx_fontawesome.prolog`` to it.
::
rst_prolog = sphinx_fontawesome.prolog + "my prolog"
For add css fontawesome, you can cssfiles option of your theme
::
html_theme_options = {
'cssfiles': ["http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"]
}
or create _templates/layout.html
::
{%- extends "yourtheme/layout.html" %}
{%- block extrahead %}
{{ super() }}
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
{% endblock %}
You can generate todo list if you add in css (as font-awesome css)
::
table.field-list th.field-name {
color: white;
}
table.field-list th.field-name .fa {
color: black;
}
and write todo list
::
:|o|: task 1
:|x|: task 2
:|x|: task 3
0.0.5
=====
- correction setup.py not call sphinx_fontawesome
0.0.4
=====
- correction REQUIREMENT
0.0.3
=====
- add newline after prolog
- update list icons
- update version css in README
0.0.2
=====
- css for list of task in README
- manage alias
0.0.1
=====
initialize extension
##################
It is a extension for sphinx.
Add directive for use fontawesome
Installation
------------
::
pip install sphinx_fontawesome
Or
::
git clone https://github.com/fraoustin/sphinx_fontawesome.git
cd sphinx_fontawesome
python setup.py install
Use
---
In your conf.py
::
import sphinx_fontawesome
extensions = ['sphinx_fontawesome']
In your rst file, you can use
* directive
::
.. fa:: check
* role
::
:fa:`check`
:fa:`check lg`
:fa:`square-o`
* substitution
::
|check|
|square-o|
If you have changed the value of rst_prolog in your conf.py, and you'd like to use subsitution you
can add ``sphinx_fontawesome.prolog`` to it.
::
rst_prolog = sphinx_fontawesome.prolog + "my prolog"
For add css fontawesome, you can cssfiles option of your theme
::
html_theme_options = {
'cssfiles': ["http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"]
}
or create _templates/layout.html
::
{%- extends "yourtheme/layout.html" %}
{%- block extrahead %}
{{ super() }}
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
{% endblock %}
You can generate todo list if you add in css (as font-awesome css)
::
table.field-list th.field-name {
color: white;
}
table.field-list th.field-name .fa {
color: black;
}
and write todo list
::
:|o|: task 1
:|x|: task 2
:|x|: task 3
0.0.5
=====
- correction setup.py not call sphinx_fontawesome
0.0.4
=====
- correction REQUIREMENT
0.0.3
=====
- add newline after prolog
- update list icons
- update version css in README
0.0.2
=====
- css for list of task in README
- manage alias
0.0.1
=====
initialize extension
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_fontawesome-0.0.6.tar.gz
(22.4 kB
view details)
File details
Details for the file sphinx_fontawesome-0.0.6.tar.gz
.
File metadata
- Download URL: sphinx_fontawesome-0.0.6.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa38d32f1654ad61f442096965f4069c074f37d7f2fadfa37f46b393938a5bdb |
|
MD5 | 5775424d7ce61260a7bf1289866eba85 |
|
BLAKE2b-256 | e0c59c14765c7f4721a7df3dc3710e3ce041b0042f91c8c75991434405657c30 |