On 01. 07. 20 19:34, Nicolas Mailhot via devel wrote:
Le mercredi 01 juillet 2020 à 18:35 +0200, Miro Hrončok a écrit :
Given the /usr/share font links in CSS won't work when the
documentation is
exposed via a webserver, I assume the docs are mostly intended to be
browsed
(possibly offline) from within Fedora anyway.
It’s not that hard to expose /usr/share/fonts in a webserver (and
pretty risk-free).
Let's consider this scenario.
The documentation is exposed on 1.2.3.4:8000 from machine A.
On machine B, I open http://1.2.3.4:8000/ in my webbrowser.
The HTML is loaded, it contains a CSS file reference.
The CSS is loaded, it contains an /usr/share/... font link.
Now I don't know if having the font /usr/share/... font installed on machine B
makes it work, but certainly, th font from machine A won't be served this way.
That makes me thing. Wouldn't it be better to reference the fonts by name
instead of full path? That way, if the font is installed on machine B (not
Fedora machine necessarily) in any way, it works.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx