[PR #667] [MERGED] Fix remove external google font server dependency #1374

Closed
opened 2026-05-07 01:01:48 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/667
Author: @ozskywalker
Created: 3/12/2023
Status: Merged
Merged: 3/13/2023
Merged by: @binwiederhier

Base: mainHead: fix-remove-external-google-font-server-dependency


📝 Commits (3)

  • 13a9017 Swapped Google-hosted fonts for local files
  • b1916b5 Built mkdocs plugin, set font to desired options
  • d7b7bea Roboto fonts: Drop support for older browsers

📊 Changes

28 files changed (+86 additions, -0 deletions)

View changed files

docs/hooks.py (+6 -0)
📝 docs/static/css/extra.css (+75 -0)
docs/static/fonts/roboto-mono-v22-latin-700.woff (+0 -0)
docs/static/fonts/roboto-mono-v22-latin-700.woff2 (+0 -0)
docs/static/fonts/roboto-mono-v22-latin-700italic.woff (+0 -0)
docs/static/fonts/roboto-mono-v22-latin-700italic.woff2 (+0 -0)
docs/static/fonts/roboto-mono-v22-latin-italic.woff (+0 -0)
docs/static/fonts/roboto-mono-v22-latin-italic.woff2 (+0 -0)
docs/static/fonts/roboto-mono-v22-latin-regular.woff (+0 -0)
docs/static/fonts/roboto-mono-v22-latin-regular.woff2 (+0 -0)
docs/static/fonts/roboto-v30-latin-300.woff (+0 -0)
docs/static/fonts/roboto-v30-latin-300.woff2 (+0 -0)
docs/static/fonts/roboto-v30-latin-300italic.woff (+0 -0)
docs/static/fonts/roboto-v30-latin-300italic.woff2 (+0 -0)
docs/static/fonts/roboto-v30-latin-500.woff (+0 -0)
docs/static/fonts/roboto-v30-latin-500.woff2 (+0 -0)
docs/static/fonts/roboto-v30-latin-500italic.woff (+0 -0)
docs/static/fonts/roboto-v30-latin-500italic.woff2 (+0 -0)
docs/static/fonts/roboto-v30-latin-700.woff (+0 -0)
docs/static/fonts/roboto-v30-latin-700.woff2 (+0 -0)

...and 8 more files

📄 Description

For reference:

  • Once you set font: false in mkdocs, it'll fall back on system fonts and stop loading remote
  • extra.css then is modified to recognize the new fonts (@font-face) AND override the default text/code font (--md-text-font / --md-code-font) to use our new fonts specified by @font-face declaration
  • Then the final piece is a quick 'n dirty mkdocs plugin to copy the font files into place during static site generation

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/667 **Author:** [@ozskywalker](https://github.com/ozskywalker) **Created:** 3/12/2023 **Status:** ✅ Merged **Merged:** 3/13/2023 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `fix-remove-external-google-font-server-dependency` --- ### 📝 Commits (3) - [`13a9017`](https://github.com/binwiederhier/ntfy/commit/13a90172c2ac22b251ce2f97dbbcdc31c92a5aad) Swapped Google-hosted fonts for local files - [`b1916b5`](https://github.com/binwiederhier/ntfy/commit/b1916b5066b946a0e0d03701f7dfc4294941684f) Built mkdocs plugin, set font to desired options - [`d7b7bea`](https://github.com/binwiederhier/ntfy/commit/d7b7bea7017f78413915ab3f62037466cd768ba5) Roboto fonts: Drop support for older browsers ### 📊 Changes **28 files changed** (+86 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `docs/hooks.py` (+6 -0) 📝 `docs/static/css/extra.css` (+75 -0) ➕ `docs/static/fonts/roboto-mono-v22-latin-700.woff` (+0 -0) ➕ `docs/static/fonts/roboto-mono-v22-latin-700.woff2` (+0 -0) ➕ `docs/static/fonts/roboto-mono-v22-latin-700italic.woff` (+0 -0) ➕ `docs/static/fonts/roboto-mono-v22-latin-700italic.woff2` (+0 -0) ➕ `docs/static/fonts/roboto-mono-v22-latin-italic.woff` (+0 -0) ➕ `docs/static/fonts/roboto-mono-v22-latin-italic.woff2` (+0 -0) ➕ `docs/static/fonts/roboto-mono-v22-latin-regular.woff` (+0 -0) ➕ `docs/static/fonts/roboto-mono-v22-latin-regular.woff2` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-300.woff` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-300.woff2` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-300italic.woff` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-300italic.woff2` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-500.woff` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-500.woff2` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-500italic.woff` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-500italic.woff2` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-700.woff` (+0 -0) ➕ `docs/static/fonts/roboto-v30-latin-700.woff2` (+0 -0) _...and 8 more files_ </details> ### 📄 Description For reference: * Once you set `font: false` in mkdocs, it'll fall back on system fonts and stop loading remote * `extra.css` then is modified to recognize the new fonts (`@font-face`) AND override the default text/code font (`--md-text-font` / `--md-code-font`) to use our new fonts specified by `@font-face` declaration * Then the final piece is a quick 'n dirty mkdocs plugin to copy the font files into place during static site generation --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:01:48 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1374
No description provided.