Skip to content

Commit c260cd0

Browse files
committed
fix: use cdn
1 parent 063f85c commit c260cd0

File tree

5 files changed

+3
-10634
lines changed

5 files changed

+3
-10634
lines changed

website/themes/moderncpp/layout/layout.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<%- css(isIndex ? 'modern-cpp/css/index' : 'modern-cpp/css/page') %>
1919

2020
<!-- this needs to be loaded before guide's inline scripts -->
21-
<script src="<%- url_for("/modern-cpp/js/vue.min.js") %>"></script>
21+
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
2222
<script>window.PAGE_TYPE = "<%- page.type %>"</script>
2323

2424
</head>
@@ -35,10 +35,10 @@
3535
<% } else { %>
3636
<%- body %>
3737
<% } %>
38-
<script src="<%- url_for("/modern-cpp/js/smooth-scroll.min.js") %>"></script>
38+
<script src="https://cdnjs.cloudflare.com/ajax/libs/smooth-scroll/10.2.1/js/smooth-scroll.min.js"></script>
3939

4040
<!-- main custom script for sidebars, version selects etc. -->
41-
<script src="<%- url_for("/modern-cpp/js/css.escape.js") %>"></script>
41+
<script src="https://cdn.jsdelivr.net/npm/css.escape@1.5.1/css.escape.min.js"></script>
4242
<script src="<%- url_for("/modern-cpp/js/common.js") %>"></script>
4343

4444
<!-- fastclick -->

website/themes/moderncpp/source/modern-cpp/js/css.escape.js

Lines changed: 0 additions & 106 deletions
This file was deleted.

website/themes/moderncpp/source/modern-cpp/js/smooth-scroll.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)