-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.Category: This is a bug.

Description
Web fonts don't work on this page: https://doc.rust-lang.org/book/ - at least not in Firefox.
Reason: @font-face definitions in CSS file "rust.css" are referring to the wrong level of the file system. The Woff files are stored in "/" -- and not in "/book".
Current (wrong) definition:
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
It should be:
src: local('Fira Sans'), url("/FiraSans-Regular.woff") format('woff');
Or even better:
src: local('Fira Sans'), url("https://doc.rust-lang.org/FiraSans-Regular.woff") format('woff');
The same is true for all @font-face definitions in the CSS file.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.Category: This is a bug.