Skip to content

Commit 07714b6

Browse files
committed
update google/code-prettify load URL
The rawgit service was shutdown in 2019, and people are supposed to migrate to cdn.jsdelivr.net. https://groups.google.com/g/js-code-prettifier/c/IFHev_kLm30
1 parent 254e0eb commit 07714b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/jsguide.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ window.initStyleGuide = function(init) {
5757

5858
// Call the pretty-printer after we've fixed up the code blocks.
5959
var pretty = document.createElement('script');
60-
pretty.src = 'https://cdn.rawgit.com/google/code-prettify/master/loader/' +
61-
'run_prettify.js';
60+
pretty.src = 'https://cdn.jsdelivr.net/gh/google/code-prettify@master/' +
61+
'loader/run_prettify.js';
6262
document.body.appendChild(pretty);
6363
}.bind(null, window.initStyleGuide);

javaguide.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="stylesheet" href="javaguide.css">
77
<script src="include/styleguide.js"></script>
88
<link rel="shortcut icon" href="/styleguide/favicon.ico">
9-
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
9+
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
1010
</head>
1111
<body onload="initStyleGuide();">
1212
<div id="content">

0 commit comments

Comments
 (0)