Open
Description
When I use this theme to render my project documentation on Read the Docs, I see many errors related to missing fonts, and the font doesn't get rendered correctly:
Documentation source code can be found at: https://github.com/microsoft/torchgeo/tree/main/docs
Documentation can be found at: https://torchgeo.readthedocs.io/en/latest/
Am I supposed to ship these fonts myself?
Activity
adamjstewart commentedon Sep 3, 2021
It seems these are shipped with
pytorch_sphinx_theme
underpytorch_sphinx_theme/static/fonts
, not sure why they aren't being installed.adamjstewart commentedon Sep 3, 2021
Hmm, they are being installed. Is the theme just looking in the wrong location for them?
adamjstewart commentedon Sep 3, 2021
If I move my
requirements.txt
to thedocs
directory and installpytorch_sphinx_theme
in editable mode:then the fonts get installed to the location that the theme expects (
docs/_static/fonts
). However, I don't think this should be necessary, and isn't necessary for other Sphinx themes.ain-soph commentedon Oct 4, 2021
The reason is that they don't upload codes to PYPI any longer, and the version on PYPI is 3 years ago and already out-of-date.
Codes in current repository (v0.0.24) are working fine, so it works if you clone the repo and build a binary wheel to install based on the current codes. But the current binary wheel file uploaded to Pypi (v0.0.19) doesn't contain the font files as package data.
Current codes has the package data claimed in setup.py that includes the font files:
pytorch_sphinx_theme/setup.py
Line 22 in b4d0005
If you install from github repo, you will have the up-to-date source codes and files including the font files. But if you simply use
pip install pytorch-sphinx-theme
, then you'll get the v0.0.19 which is uploaded 3 years ago.