You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/01/22 13:48:25 UTC

[echarts-www] branch master updated: fix feature page loading. use hd image. fix example cdn

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

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


The following commit(s) were added to refs/heads/master by this push:
     new a8a81c1  fix feature page loading. use hd image. fix example cdn
a8a81c1 is described below

commit a8a81c1dd3893eeb4b03eeda5861dc53d5247654
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Jan 22 21:48:09 2021 +0800

    fix feature page loading. use hd image. fix example cdn
---
 _jade/en/feature.jade                       |   5 +++++
 _jade/zh/feature.jade                       |   5 +++++
 bin/build.js                                |   4 +++-
 images/event/20200128-apache-echarts-5.png  | Bin 77300 -> 227414 bytes
 images/event/20200128-apache-echarts-5.webp | Bin 33936 -> 65640 bytes
 5 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/_jade/en/feature.jade b/_jade/en/feature.jade
index 567d9a5..6d0a772 100644
--- a/_jade/en/feature.jade
+++ b/_jade/en/feature.jade
@@ -93,5 +93,10 @@ block content
 
 
 block extra_js
+    script.
+        window.lazyLoadOptions = {
+            elements_selector: 'iframe'
+        };
+    script(src='https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js')
     script(type='text/javascript').
         document.getElementById('nav-doc').className = 'active';
diff --git a/_jade/zh/feature.jade b/_jade/zh/feature.jade
index 14fb5f6..0b98057 100644
--- a/_jade/zh/feature.jade
+++ b/_jade/zh/feature.jade
@@ -90,5 +90,10 @@ block content
 
 
 block extra_js
+    script.
+        window.lazyLoadOptions = {
+            elements_selector: 'iframe'
+        };
+    script(src='https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js')
     script(type='text/javascript').
         document.getElementById('nav-doc').className = 'active';
diff --git a/bin/build.js b/bin/build.js
index 94fefe3..43fd7a4 100644
--- a/bin/build.js
+++ b/bin/build.js
@@ -190,7 +190,9 @@ async function buildJade(config) {
 
     for (let srcPath of srcPaths) {
         let filePath = path.resolve(basePath, srcPath);
-        const lang = srcPath.indexOf('zh/') === 0 ? 'zh' : 'en';
+
+        const lang = (srcPath.indexOf('zh/') === 0
+            || srcPath.indexOf('examples/zh/') === 0) ? 'zh' : 'en';
 
         assert(hashes[lang]);
 
diff --git a/images/event/20200128-apache-echarts-5.png b/images/event/20200128-apache-echarts-5.png
index 8712840..9c64472 100644
Binary files a/images/event/20200128-apache-echarts-5.png and b/images/event/20200128-apache-echarts-5.png differ
diff --git a/images/event/20200128-apache-echarts-5.webp b/images/event/20200128-apache-echarts-5.webp
index 0fc4aee..f3ffd0e 100644
Binary files a/images/event/20200128-apache-echarts-5.webp and b/images/event/20200128-apache-echarts-5.webp differ


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org