From 016f628954de4fd629190872333ab751188d76aa Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Sun, 13 Oct 2019 16:18:29 -0400 Subject: [PATCH] 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. --- docs/pages/13.i18n/docs.md | 2 +- docs/themes/site/templates/partials/base.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/13.i18n/docs.md b/docs/pages/13.i18n/docs.md index 220d4565..98a58a51 100644 --- a/docs/pages/13.i18n/docs.md +++ b/docs/pages/13.i18n/docs.md @@ -7,7 +7,7 @@ process: never_cache_twig: true --- -{% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.11/js/i18n/es.js', 90) %} +{% do assets.addJs('https://cdn.jsdelivr.net/npm/select2@4.0.10/dist/js/i18n/es.js', 90) %} ## Message translations diff --git a/docs/themes/site/templates/partials/base.html.twig b/docs/themes/site/templates/partials/base.html.twig index de67b339..3b9a1cf8 100644 --- a/docs/themes/site/templates/partials/base.html.twig +++ b/docs/themes/site/templates/partials/base.html.twig @@ -17,7 +17,7 @@ {% do assets.addCss('theme://css/custom.css',100) %} {% do assets.addCss('theme://css/font-awesome.min.css',100) %} {% do assets.addCss('theme://css/featherlight.min.css') %} - {% do assets.addCss('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.11/css/select2.min.css') %} + {% do assets.addCss('https://cdn.jsdelivr.net/npm/select2@4.0.11/dist/css/select2.min.css') %} {% do assets.addCss('theme://css/s2-docs.css', 100) %} {% do assets.addCss('theme://css/theme.css',100) %} @@ -33,7 +33,7 @@ {% block javascripts %} {% do assets.addJs('jquery',101) %} {% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %} - {% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.11/js/select2.full.min.js', 100) %} + {% do assets.addJs('https://cdn.jsdelivr.net/npm/select2@4.0.11/dist/js/select2.full.min.js', 100) %} {% do assets.addJs('https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js', 100) %} {% do assets.addJs('theme://js/featherlight.min.js') %} {% do assets.addJs('theme://js/clipboard.min.js') %}