This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git


The following commit(s) were added to refs/heads/master by this push:
     new ef08c75  fix CDN path (resolves #443)
ef08c75 is described below

commit ef08c758efac648e989f239ce91b12d1f7fcffd1
Author: plainheart <[email protected]>
AuthorDate: Fri Apr 11 15:26:18 2025 +0800

    fix CDN path (resolves #443)
---
 contents/en/basics/release-note/5-3-0.md | 2 +-
 contents/zh/basics/release-note/5-3-0.md | 2 +-
 layouts/default.vue                      | 5 ++++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/contents/en/basics/release-note/5-3-0.md 
b/contents/en/basics/release-note/5-3-0.md
index 6b43ae2..e254683 100644
--- a/contents/en/basics/release-note/5-3-0.md
+++ b/contents/en/basics/release-note/5-3-0.md
@@ -158,7 +158,7 @@ For example, the following example animates the pins drawn 
by the custom series
 
 ```js live {layout: 'lr', readOnly: true }
 fetch(
-  
'https://fastly.jsdelivr.net/gh/apache/echarts-website@asf-site/examples/data/asset/geo/Map_of_Iceland.svg'
+  'https://echarts.apache.org/examples/data/asset/geo/Map_of_Iceland.svg'
 )
   .then(response => response.text())
   .then(svg => {
diff --git a/contents/zh/basics/release-note/5-3-0.md 
b/contents/zh/basics/release-note/5-3-0.md
index 88e43ff..0d8b74e 100644
--- a/contents/zh/basics/release-note/5-3-0.md
+++ b/contents/zh/basics/release-note/5-3-0.md
@@ -158,7 +158,7 @@ option = {
 
 ```js live {layout: 'lr', readOnly: true }
 fetch(
-  
'https://fastly.jsdelivr.net/gh/apache/echarts-website@asf-site/examples/data/asset/geo/Map_of_Iceland.svg'
+  'https://echarts.apache.org/examples/data/asset/geo/Map_of_Iceland.svg'
 )
   .then(response => response.text())
   .then(svg => {
diff --git a/layouts/default.vue b/layouts/default.vue
index 8219ee3..9b81ace 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -77,6 +77,9 @@ export default {
         },
       ],
       script: [
+        {
+          innerHTML: `window.ECHARTS_WWW_VENDORS_CDN_ROOT = '${cdnRoot}';`
+        },
         {
           src: `${cdnRoot}[email protected]/dist/jquery.min.js`,
         },
@@ -94,7 +97,7 @@ export default {
             '<div class="no-script"><strong>很抱歉,Apache ECharts 网站需要启用 
JavaScript 才能正常运行。</strong></div>',
         },
       ],
-      __dangerouslyDisableSanitizers: ['noscript'],
+      __dangerouslyDisableSanitizers: ['noscript', 'script'],
     }
   },
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to