Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,4 @@ cython_debug/
.cursorindexingignore

# Downloaded font assets
docs/assets/fonts/*.ttf
docs/assets/downloaded/
93 changes: 0 additions & 93 deletions docs/assets/fonts/OFL.txt

This file was deleted.

2 changes: 1 addition & 1 deletion docs/hooks/download_fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
def on_config(config):
"""Download self-hosted Roboto assets before MkDocs builds the site."""
docs_dir = Path(config["docs_dir"])
font_dir = docs_dir / "assets" / "fonts"
font_dir = docs_dir / "assets" / "downloaded" / "fonts"
font_dir.mkdir(parents=True, exist_ok=True)

for item in DOWNLOADS:
Expand Down
4 changes: 2 additions & 2 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* Enable custom fonts */
@font-face {
font-family: "Roboto";
src: url("../assets/fonts/Roboto.ttf") format("truetype");
src: url("../assets/downloaded/fonts/Roboto.ttf") format("truetype");
font-style: normal;
font-weight: 100 900;
font-stretch: 75% 100%;
Expand All @@ -17,7 +17,7 @@

@font-face {
font-family: "Roboto";
src: url("../assets/fonts/Roboto-Italic.ttf") format("truetype");
src: url("../assets/downloaded/fonts/Roboto-Italic.ttf") format("truetype");
font-style: italic;
font-weight: 100 900;
font-stretch: 75% 100%;
Expand Down
Loading