mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-10-12 18:16:47 +00:00
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
This commit is contained in:
1 parent
254e0ebcb3
commit
07714b62df
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -57,7 +57,7 @@ window.initStyleGuide = function(init) {
|
||||
|
||||
// Call the pretty-printer after we've fixed up the code blocks.
|
||||
var pretty = document.createElement('script');
|
||||
pretty.src = 'https://cdn.rawgit.com/google/code-prettify/master/loader/' +
|
||||
'run_prettify.js';
|
||||
pretty.src = 'https://cdn.jsdelivr.net/gh/google/code-prettify@master/' +
|
||||
'loader/run_prettify.js';
|
||||
document.body.appendChild(pretty);
|
||||
}.bind(null, window.initStyleGuide);
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
<link rel="stylesheet" href="javaguide.css">
|
||||
<script src="include/styleguide.js"></script>
|
||||
<link rel="shortcut icon" href="/styleguide/favicon.ico">
|
||||
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
|
||||
</head>
|
||||
<body onload="initStyleGuide();">
|
||||
<div id="content">
|
||||
|
||||
Reference in new issue
Block a user