Skip to content

Commit

Permalink
pkp#785 Use local copies of script, font and style files instead of CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Jun 28, 2021
1 parent 78d7324 commit 7060149
Show file tree
Hide file tree
Showing 56 changed files with 3,507 additions and 7 deletions.
5 changes: 2 additions & 3 deletions _includes/book/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
<meta name="robots" content="noindex">
{% endif %}
<link type="text/css" href="/css/book.css" rel="stylesheet" media="all">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i|Roboto+Mono:400,700" rel="stylesheet">
<script defer src="https://unpkg.com/[email protected]/dist/js/smooth-scroll.polyfills.min.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl" crossorigin="anonymous"></script>
<script defer src="/assets/js/smooth-scroll.polyfills.min.js"></script>
<script defer src="/assets/js/fontawesome.min.js"></script>
7 changes: 3 additions & 4 deletions _includes/hub/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<meta property="og:image" content="/img/docs-logo.png">
{% endif %}
<link type="text/css" href="/css/style.css" rel="stylesheet" media="all">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i" rel="stylesheet">
<script defer src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
<script defer src="https://unpkg.com/[email protected]/dist/js/smooth-scroll.polyfills.min.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.9/js/all.js" integrity="sha384-8iPTk2s/jMVj81dnzb/iFR2sdA7u06vHJyyLlAd4snFpCl/SnyUjRrbdJsw1pGIl" crossorigin="anonymous"></script>
<script type="text/javascript">{% include js/masonry.pkgd.min.js %}</script>
<script defer src="/assets/js/smooth-scroll.polyfills.min.js"></script>
<script defer src="/assets/js/fontawesome.min.js"></script>
9 changes: 9 additions & 0 deletions _includes/js/masonry.pkgd.min.js

Large diffs are not rendered by default.

139 changes: 139 additions & 0 deletions _sass/_fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/* roboto-300 - latin-ext_latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: url('/assets/fonts/roboto-v27-latin-ext_latin-300.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-v27-latin-ext_latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-v27-latin-ext_latin-300.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-300.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-v27-latin-ext_latin-300.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-300italic - latin-ext_latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 300;
src: url('/assets/fonts/roboto-v27-latin-ext_latin-300italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-v27-latin-ext_latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-v27-latin-ext_latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-300italic.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-v27-latin-ext_latin-300italic.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-italic - latin-ext_latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 400;
src: url('/assets/fonts/roboto-v27-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-v27-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-v27-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-v27-latin-ext_latin-italic.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-regular - latin-ext_latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: url('/assets/fonts/roboto-v27-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-v27-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-v27-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-v27-latin-ext_latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-500 - latin-ext_latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: url('/assets/fonts/roboto-v27-latin-ext_latin-500.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-v27-latin-ext_latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-v27-latin-ext_latin-500.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-500.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-v27-latin-ext_latin-500.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-700 - latin-ext_latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: url('/assets/fonts/roboto-v27-latin-ext_latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-v27-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-v27-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-v27-latin-ext_latin-700.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-500italic - latin-ext_latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 500;
src: url('/assets/fonts/roboto-v27-latin-ext_latin-500italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-v27-latin-ext_latin-500italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-v27-latin-ext_latin-500italic.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-500italic.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-500italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-v27-latin-ext_latin-500italic.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-700italic - latin-ext_latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 700;
src: url('/assets/fonts/roboto-v27-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-v27-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-v27-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-v27-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-v27-latin-ext_latin-700italic.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-mono-regular - latin */
@font-face {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 400;
src: url('/assets/fonts/roboto-mono-v13-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-mono-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-mono-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-mono-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-mono-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-mono-v13-latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */
}

/* roboto-mono-700 - latin */
@font-face {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 700;
src: url('/assets/fonts/roboto-mono-v13-latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('/assets/fonts/roboto-mono-v13-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/fonts/roboto-mono-v13-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/fonts/roboto-mono-v13-latin-700.woff') format('woff'), /* Modern Browsers */
url('/assets/fonts/roboto-mono-v13-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/fonts/roboto-mono-v13-latin-700.svg#RobotoMono') format('svg'); /* Legacy iOS */
}
Binary file added assets/fonts/roboto-mono-v13-latin-700.eot
Binary file not shown.
Loading

0 comments on commit 7060149

Please sign in to comment.