MrDogeBro / sphinx_rtd_dark_mode

Adds a toggleable dark mode to the Read the Docs theme for Sphinx.
sphinx-rtd-dark-mode.vercel.app
MIT License
49 stars 15 forks source link

RTD Font Changes #5

Closed MrDogeBro closed 3 years ago

MrDogeBro commented 3 years ago

Description

The text in the bottom left hand corner that says Read the Docs gets the font changed when using the extension. There is two screenshots below showing the differences. This is potentially due to importing Font Awesome for use of icons. Will work on trying to figure this out.

Screenshots

Normal Font

Cap 05-13-21 20 46 17

Changed Font

Cap 05-13-21 20 43 09

MrDogeBro commented 3 years ago

After a small amount of investigation, my suspicions about the Font Awesome font seem to be correct. With the extension, the primary font for that text is Font Awesome. However, on the normal site, it is a different version of the Font Awesome font. This leads me to believe that Font Awesome is already included with RTD theme. If this is the case, it should be as simple as removing the extensions inclusion of the Font Awesome font.

MrDogeBro commented 3 years ago

Well, the change fixed the issue but also broke the normal theme indicator icons at the same time.

MrDogeBro commented 3 years ago

It turns out RTD uses Font Awesome 4 and not 5 so I should just need to use icons from Font Awesome 5.