mkdocs-material icon indicating copy to clipboard operation
mkdocs-material copied to clipboard

Use local distributed fonts by default (instead of Google Fonts) because of DSGVO

Open shokinn opened this issue 3 years ago • 0 comments

Contribution guidelines

I've found a bug and checked that ...

  • [X] ... the problem doesn't occur with the mkdocs or readthedocs themes
  • [X] ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_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

  1. Go to a mkdocs material serving website (without enabled privacy plugin) e.g. https://squidfunk.github.io/mkdocs-material/
  2. Open developer tools
  3. Open the "Network" tab
  4. Do a force reload (with re-downloading all assets)
  5. 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)

shokinn avatar Aug 10 '22 09:08 shokinn

Thanks for reporting. We have an explanation in the docs why this is not economical:

Bildschirmfoto 2022-08-10 um 17 49 48

Your options:

  • Use the privacy plugin, which makes self-hosting dead simple
  • Disable autoloading and implement it manually

squidfunk avatar Aug 10 '22 15:08 squidfunk

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.

squidfunk avatar Aug 10 '22 15:08 squidfunk