No description
Find a file
2020-07-31 15:42:00 +02:00
sphinx_fasvg Support for ePub builder 2020-07-31 15:42:00 +02:00
.gitignore Initial release 2020-05-19 15:35:17 +02:00
CHANGES ePub compatibility 2020-07-11 23:59:35 +02:00
LICENSE Initial release 2020-05-19 15:35:17 +02:00
LICENSE-de Initial release 2020-05-19 15:35:17 +02:00
LICENSE-fr Initial release 2020-05-19 15:35:17 +02:00
LICENSE-nl Initial release 2020-05-19 15:35:17 +02:00
README.rst Initial release 2020-05-19 15:35:17 +02:00
setup.cfg Initial release 2020-05-19 15:35:17 +02:00
setup.py ePub compatibility 2020-07-11 23:59:35 +02:00

Fontawesome SVG for Sphinx
==========================

Install the module :

.. code:: bash

   python setup.py install

Download SVGs from fontawesome website. Configure it
in your `conf.py`:

.. code:: python

   fa_brands_path = '_static/fa/brands.svg'
   fa_regular_path = '_static/fa/brands.svg'
   fa_solid_path = '_static/fa/brands.svg'

Use inline references for brands, regular or solid:

.. code:: rst

   Display an icon, with no alt text and aria-hidden:

   :fab:`icon`
   :far:`icon`
   :fas:`icon`

   An icon with some attributes:

   .. far:: icon
      :class: myclass
      :id: myid
      :alt: alt text

   For links with fasvglink and icon name as classes.
   This can be used to create fancy social links

   :fablink:`icon: Text <url>`
   :farlink:`icon: Text <url>`
   :faslink:`icon: Text <url>`

.. warning::

   Icon is not inserted in LaTeX document for now.
   It uses alt text for all builders except HTML and
   ePub.

By kujiu, EUPL 1.2 licence.