Packaged Material icons with theme (GDPR)

This commit is contained in:
squidfunk 2018-06-10 13:52:51 +02:00
parent 416fd474b4
commit 2fbeb28d9d
4 changed files with 18 additions and 6 deletions

View File

@ -65,8 +65,8 @@
}}">
<style>body,input{font-family:"{{ font.text }}","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"{{ font.code }}","Courier New",Courier,monospace}</style>
{% endif %}
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
{% endblock %}
<link rel="stylesheet" href="{{ base_url }}/assets/fonts/material-icons.css">
{% for path in extra_css %}
<link rel="stylesheet" href="{{ path }}">
{% endfor %}

8
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "mkdocs-material",
"version": "2.7.1",
"version": "2.7.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -7337,6 +7337,12 @@
"integrity": "sha1-6K+VjYUqh0e/shHkjOEoK9qRiBU=",
"dev": true
},
"material-design-icons": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/material-design-icons/-/material-design-icons-3.0.1.tgz",
"integrity": "sha1-mnHEh0chjrylHlGmbaaCA4zct78=",
"dev": true
},
"material-shadows": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/material-shadows/-/material-shadows-3.0.1.tgz",

View File

@ -135,12 +135,12 @@
}
</style>
{% endif %}
<!-- Material icons as a default iconset -->
<link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/icon?family=Material+Icons" />
{% endblock %}
<!-- Material icons as iconset -->
<link rel="stylesheet" type="text/css"
href="{{ base_url }}/assets/fonts/material-icons.css" />
<!-- Custom stylesheets -->
{% for path in extra_css %}
<link rel="stylesheet" type="text/css" href="{{ path }}" />

View File

@ -122,6 +122,12 @@ module.exports = env => {
}
},
/* Copy web fonts */
{
context: "src",
from: "assets/fonts/**/*"
},
/* Copy images without cache busting */
{
context: "src",