Skip to content

remove use of CDNs from default themes #2171

@ghost

Description

mkdocs looks like the perfect tool to self-host documentation! I'm a bit confused as to why CDNs are used for fonts and CSS. I'd prefer not to throw my visitors under the Google or Cloudflare bus :) Would it be possible to change this by default and not have the fonts and CSS come from CDNs? This is already done for some fonts and CSS files...

References:

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700" />

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{lang}}.min.js"></script>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ config.theme.hljs_style }}.min.css">

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{lang}}.min.js"></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Theme-mkdocsIssues specifically involving the mkdocs theme.Theme-readthedocsIssues specifically involving the readthedocs theme.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions