mkdocs-material
mkdocs-material copied to clipboard
Use local distributed fonts by default (instead of Google Fonts) because of DSGVO
Contribution guidelines
- [X] I've read the contribution guidelines and wholeheartedly agree
I've found a bug and checked that ...
- [X] ... the problem doesn't occur with the
mkdocsorreadthedocsthemes - [X] ... the problem persists when all overrides are removed, i.e.
custom_dir,extra_javascriptandextra_css - [ ] ... the documentation does not mention anything about my problem
- [X] ... there are no open or closed issues that are related to my problem
Description
Google Fonts are illegal to deliver in Germany due to the DSGVO. There is a recent court case by the LG München (Az. 3 O 17493/20) where the decision was taken.
German media coverage about this: Heise
Expected behaviour
Fonts are delivered by the server who is serving the docs.
Actual behaviour
Fonts are delivered by Google Fonts.
Steps to reproduce
- Go to a mkdocs material serving website (without enabled privacy plugin) e.g. https://squidfunk.github.io/mkdocs-material/
- Open developer tools
- Open the "Network" tab
- Do a force reload (with re-downloading all assets)
- Search for
fonts.gstatic.com
Package versions
- Python:
3.10.5 - MkDocs:
mkdocs, version 1.3.0 from /usr/local/lib/python3.10/site-packages/mkdocs (Python 3.10) - Material:
8.3.9 - Container version:
ghcr.io/afritzler/mkdocs-material:8.3.9
Configuration
site_name: My Docs
theme:
name: material
System information
- Operating system: macOS 12.4
- Browser: Firefox 103.0 (64-bit)
Thanks for reporting. We have an explanation in the docs why this is not economical:
Your options:
- Use the privacy plugin, which makes self-hosting dead simple
- Disable autoloading and implement it manually
For further context, see the lengthy discussions in #739 and https://github.com/squidfunk/mkdocs-material/issues/739#issuecomment-1036027153 for a guide for self-hosting.