executablebooks / sphinx-book-theme

A clean book theme for scientific explanations and documentation with Sphinx
https://sphinx-book-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
432 stars 197 forks source link

FontAwesome !works #858

Open dylanh724 opened 1 week ago

dylanh724 commented 1 week ago

Describe the bug

context When I do ___:

FA Test
-------

- An icon :fas:`spinner;sd-text-primary`, some more text.
- An icon :fab:`github`, some more text.
- An icon :fab:`gitkraken;sd-text-success fa-xl`, some more text.
- An icon :fas:`skull;sd-text-danger`, some more text.

expectation I expected FA icons to appear as shown in the parent PyData doc

bug But instead no FA icon appears; instead, they appear as an #anchored link that literally shows:

:fab:`github`

image

problem This is a problem for anyone trying to use FontAwesome.

Reproduce the bug

FA Test

List your environment

agoose77 commented 1 week ago

The font-awesome icon roles are defined in sphinx-design, not sphinx-book-theme. Have you installed and enabled it?

dylanh724 commented 1 week ago

The font-awesome icon roles are defined in sphinx-design, not sphinx-book-theme. Have you installed and enabled it?

I have not :) I had no clue it was separate. Is there a doc you can point me to that instructs this? I'm curious how one normally finds this.

dylanh724 commented 1 week ago

(Heads up, the quickstart instructions for sphinx-design is wrong):

https://sphinx-design.readthedocs.io/en/latest/get_started.html

It's pip sphinx_design, not sphinx-design (that seems to exist, but dated)

dylanh724 commented 1 week ago

image

Many thanks, friend. However, I am going to leave this ticket open since this may still be a task. I went back to onboarding looked around similar sections regarding styling, but still couldn't find a direction to what you just told me.