Skip to content

Commit 0c26767

Browse files
committed
docs(mkdocs): Fix font
The font was actually loaded from Google Fonts, not locally. The theme.font.text property in mkdocs.yaml can only reference Google Fonts, which we can disable completely and rely on loading the proper font from CSS. Unfortunately the way it was defined before didn't work, see the mkdocs documentation: https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/#docsstylesheetsextracss
1 parent 9522606 commit 0c26767

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/extra.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
src: url("ArtegraSans-Regular.ttf");
44
}
55

6-
html {
7-
font-family: "Artegra Sans", Sans-serif;
6+
:root {
7+
--md-text-font: "Artegra Sans";
88
}
99

1010
[data-md-color-scheme="default"] {

mkdocs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ theme:
3535
name: material
3636
logo: logo.svg
3737
favicon: favicon.png
38-
font:
39-
text: Artegra Sans
38+
font: false
4039
palette:
4140
- media: "(prefers-color-scheme: light)"
4241
scheme: default

0 commit comments

Comments
 (0)