Skip to content

Commit 016f628

Browse files
committed
Switchs docs to load from jsdelivr
This should hopefully fix the issue we were seeing where the docs would not render properly immediately after a release because CDNjs has a delay in updating versions. jsdelivr does not have this delay, so we shouldn't have any many rendering issues.
1 parent deda455 commit 016f628

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/pages/13.i18n/docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ process:
77
never_cache_twig: true
88
---
99

10-
{% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.11/js/i18n/es.js', 90) %}
10+
{% do assets.addJs('https://cdn.jsdelivr.net/npm/select2@4.0.10/dist/js/i18n/es.js', 90) %}
1111

1212
## Message translations
1313

docs/themes/site/templates/partials/base.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{% do assets.addCss('theme://css/custom.css',100) %}
1818
{% do assets.addCss('theme://css/font-awesome.min.css',100) %}
1919
{% do assets.addCss('theme://css/featherlight.min.css') %}
20-
{% do assets.addCss('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.11/css/select2.min.css') %}
20+
{% do assets.addCss('https://cdn.jsdelivr.net/npm/select2@4.0.11/dist/css/select2.min.css') %}
2121
{% do assets.addCss('theme://css/s2-docs.css', 100) %}
2222
{% do assets.addCss('theme://css/theme.css',100) %}
2323

@@ -33,7 +33,7 @@
3333
{% block javascripts %}
3434
{% do assets.addJs('jquery',101) %}
3535
{% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %}
36-
{% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.11/js/select2.full.min.js', 100) %}
36+
{% do assets.addJs('https://cdn.jsdelivr.net/npm/select2@4.0.11/dist/js/select2.full.min.js', 100) %}
3737
{% do assets.addJs('https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js', 100) %}
3838
{% do assets.addJs('theme://js/featherlight.min.js') %}
3939
{% do assets.addJs('theme://js/clipboard.min.js') %}

0 commit comments

Comments
 (0)