You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2021/04/25 08:03:59 UTC

[echarts-handbook] branch master updated (02dce66 -> 3d1ab85)

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

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


    from 02dce66  update scroll-into-view type and style
     new 21bae2d  fix: contributor generation logic
     new 3d1ab85  feat: hide posts that are not ready

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 app.html                                           |  2 +-
 build/generate-contributors.js                     |  3 +-
 components/partials/Navbar/en.js                   |  2 +-
 components/partials/Navbar/zh.js                   |  2 +-
 components/partials/Sidebar.vue                    |  1 +
 .../chart-types/scatter/basic-scatter.md           |  2 +-
 contents/zh/basics/help.md                         |  2 +-
 contents/zh/basics/inspiration.md                  |  2 +-
 contents/zh/posts.js                               | 41 ++++++++++++++--------
 layouts/default.vue                                |  6 +++-
 pages/helper/contributors.ts                       | 32 ++++++++++++++---
 11 files changed, 69 insertions(+), 26 deletions(-)

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


[echarts-handbook] 01/02: fix: contributor generation logic

Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 21bae2dc8bc8e40d096a4834b49c47f92880728f
Author: Ovilia <zw...@gmail.com>
AuthorDate: Sun Apr 25 16:03:23 2021 +0800

    fix: contributor generation logic
---
 build/generate-contributors.js |  3 ++-
 pages/helper/contributors.ts   | 32 ++++++++++++++++++++++++++++----
 2 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/build/generate-contributors.js b/build/generate-contributors.js
index 20d615b..5751295 100644
--- a/build/generate-contributors.js
+++ b/build/generate-contributors.js
@@ -27,7 +27,8 @@ for (let i = 0; i < paths.length; ++i) {
             }
             else {
                 const key = paths[i].slice(2);
-                entries[key] = stdout.trim().replace('\t\n', ',').split(',');
+                entries[key] = stdout.trim().split('\n')
+                    .map(name => name.trim());
             }
             if (i === paths.length - 1) {
                 const text = 'export default ' + JSON.stringify(entries, null, '    ') + ';';
diff --git a/pages/helper/contributors.ts b/pages/helper/contributors.ts
index 1cf7b11..cae47ca 100644
--- a/pages/helper/contributors.ts
+++ b/pages/helper/contributors.ts
@@ -1,4 +1,7 @@
 export default {
+    "contents/zh/meta/writing.md": [
+        "Ovilia"
+    ],
     "contents/zh/meta/get-started.md": [
         "Ovilia"
     ],
@@ -22,12 +25,18 @@ export default {
         "yufeng04"
     ],
     "contents/zh/concepts/event.md": [
+        "100pah",
         "Ovilia",
-        "huanghan01\t\nplainheart"
+        "huanghan01",
+        "plainheart"
     ],
     "contents/zh/concepts/dataset.md": [
         "100pah",
-        "Ovilia\t\nhuanghan01"
+        "Ovilia",
+        "huanghan01"
+    ],
+    "contents/zh/concepts/data-transform.md": [
+        "100pah"
     ],
     "contents/zh/concepts/coordinate.md": [
         "Ovilia"
@@ -37,7 +46,9 @@ export default {
     ],
     "contents/zh/concepts/axis.md": [
         "Ovilia",
-        "huanghan01\t\nplainheart\t\nyufeng04"
+        "huanghan01",
+        "plainheart",
+        "yufeng04"
     ],
     "contents/zh/best-practice/mobile.md": [
         "Ovilia"
@@ -87,6 +98,7 @@ export default {
         "Wdingding"
     ],
     "contents/zh/best-practice/chart-specificatio/bar/bi-directional-bar.md": [
+        "Ovilia",
         "Wdingding"
     ],
     "contents/zh/best-practice/chart-specificatio/bar/basic-bar.md": [
@@ -94,6 +106,7 @@ export default {
         "Wdingding"
     ],
     "contents/zh/best-practice/canvas-vs-svg.md": [
+        "100pah",
         "Ovilia"
     ],
     "contents/zh/best-practice/aria.md": [
@@ -106,10 +119,12 @@ export default {
         "Ovilia"
     ],
     "contents/zh/basics/help.md": [
+        "100pah",
         "Ovilia",
         "plainheart"
     ],
     "contents/zh/basics/download.md": [
+        "100pah",
         "Ovilia"
     ],
     "contents/zh/application/mobile.md": [
@@ -123,6 +138,7 @@ export default {
         "pissang"
     ],
     "contents/zh/application/custom-build.md": [
+        "100pah",
         "Ovilia"
     ],
     "contents/zh/application/cross-platform/wechat-app.md": [
@@ -205,13 +221,18 @@ export default {
         "huanghan01"
     ],
     "contents/en/concepts/event.md": [
+        "100pah",
         "Ovilia",
         "huanghan01"
     ],
     "contents/en/concepts/dataset.md": [
+        "100pah",
         "Ovilia",
         "huanghan01"
     ],
+    "contents/en/concepts/data-transform.md": [
+        "100pah"
+    ],
     "contents/en/concepts/coordinate.md": [
         "huanghan01"
     ],
@@ -267,6 +288,7 @@ export default {
         "Hansz00"
     ],
     "contents/en/best-practice/canvas-vs-svg.md": [
+        "100pah",
         "Hansz00",
         "Ovilia"
     ],
@@ -333,6 +355,8 @@ export default {
     ],
     "contents/zh/posts.js": [
         "100pah",
-        "Ovilia\t\nWdingding\t\npissang"
+        "Ovilia",
+        "Wdingding",
+        "pissang"
     ]
 };
\ No newline at end of file

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


[echarts-handbook] 02/02: feat: hide posts that are not ready

Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3d1ab858ee83ca101acf99c34c52f44ba2a5ad61
Author: Ovilia <zw...@gmail.com>
AuthorDate: Sun Apr 25 16:03:47 2021 +0800

    feat: hide posts that are not ready
---
 app.html                                           |  2 +-
 components/partials/Navbar/en.js                   |  2 +-
 components/partials/Navbar/zh.js                   |  2 +-
 components/partials/Sidebar.vue                    |  1 +
 .../chart-types/scatter/basic-scatter.md           |  2 +-
 contents/zh/basics/help.md                         |  2 +-
 contents/zh/basics/inspiration.md                  |  2 +-
 contents/zh/posts.js                               | 41 ++++++++++++++--------
 layouts/default.vue                                |  6 +++-
 9 files changed, 39 insertions(+), 21 deletions(-)

diff --git a/app.html b/app.html
index 22c790b..f84d227 100644
--- a/app.html
+++ b/app.html
@@ -2,7 +2,7 @@
 <html {{ HTML_ATTRS }}>
     <head {{ HEAD_ATTRS }}>
         <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
-        <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/apache/incubator-echarts-website@asf-site/zh/css/main.css">
+        <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/zh/css/main.css">
         {{ HEAD }}
     </head>
     <body {{ BODY_ATTRS }}>
diff --git a/components/partials/Navbar/en.js b/components/partials/Navbar/en.js
index 28be376..21943f3 100644
--- a/components/partials/Navbar/en.js
+++ b/components/partials/Navbar/en.js
@@ -1 +1 @@
-module.exports = `<nav role="navigation" class="navbar navbar-default navbar-fixed-top"><div class="container-fluid"><div class="navbar-header"><button type="button" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false" class="navbar-toggle collapsed"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a href="https://echarts.apache.org/en/index.html" class="navbar-brand">< [...]
+module.exports = `<nav role="navigation" class="navbar navbar-default navbar-fixed-top"><div class="container-fluid"><div class="navbar-header"><button type="button" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false" class="navbar-toggle collapsed"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a href="https://echarts.apache.org/en/index.html" class="navbar-brand">< [...]
diff --git a/components/partials/Navbar/zh.js b/components/partials/Navbar/zh.js
index 2a7fc84..3de5141 100644
--- a/components/partials/Navbar/zh.js
+++ b/components/partials/Navbar/zh.js
@@ -1 +1 @@
-module.exports = `<nav role="navigation" class="navbar navbar-default navbar-fixed-top"><div class="container-fluid"><div class="navbar-header"><button type="button" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false" class="navbar-toggle collapsed"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a href="https://echarts.apache.org/zh/index.html" class="navbar-brand">< [...]
+module.exports = `<nav role="navigation" class="navbar navbar-default navbar-fixed-top"><div class="container-fluid"><div class="navbar-header"><button type="button" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false" class="navbar-toggle collapsed"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button><a href="https://echarts.apache.org/zh/index.html" class="navbar-brand">< [...]
diff --git a/components/partials/Sidebar.vue b/components/partials/Sidebar.vue
index 8f0e3e4..6d4c6ab 100644
--- a/components/partials/Sidebar.vue
+++ b/components/partials/Sidebar.vue
@@ -130,6 +130,7 @@ export default Vue.extend({
         transform: scale(0.8);
         top: 2px;
         left: -4px;
+        margin: -5px 0;
       }
 
         .nav-link .glyphicon-menu-up {
diff --git a/contents/zh/application/chart-types/scatter/basic-scatter.md b/contents/zh/application/chart-types/scatter/basic-scatter.md
index 703004f..f32155a 100644
--- a/contents/zh/application/chart-types/scatter/basic-scatter.md
+++ b/contents/zh/application/chart-types/scatter/basic-scatter.md
@@ -68,7 +68,7 @@ ECharts 内置形状包括:圆形、矩形、圆角矩形、三角形、菱形
 </svg>
 ```
 
-在 ECharts 的 `symbol` 配置项中,我们使用d的值作为路径。
+在 ECharts 的 `symbol` 配置项中,我们使用 `d` 的值作为路径。
 
 <!-- embed -->
 ```js
diff --git a/contents/zh/basics/help.md b/contents/zh/basics/help.md
index ec7df8a..3f131e4 100644
--- a/contents/zh/basics/help.md
+++ b/contents/zh/basics/help.md
@@ -18,7 +18,7 @@ ECharts 有非常大量的用户,所以你遇到过的问题,很可能别人
 
 ### 创建一个最简单可复现的例子
 
-使用 [Codepen](https://codepen.io/Ovilia/pen/dyYWXWM) 或者 [ECharts Gallery](https://gallery.echartsjs.com/editor.html) 创建一个例子,这将使得他人更方便地复现你的问题。
+使用 [Codepen](https://codepen.io/Ovilia/pen/dyYWXWM)、[Codesandbox](https://codesandbox.io/s/mystifying-bash-2uthz) 或者 [makeapie.com](https://www.makeapie.com/) 创建一个例子,这将使得他人更方便地复现你的问题。
 
 例子应尽可能以最简单的方式复现你的问题,去除不必要的配置项和数据,可以让帮助你的人更快速地定位问题,从而让你的问题更快得到解决。更详细的介绍请参见 [How to create a Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example)。
 
diff --git a/contents/zh/basics/inspiration.md b/contents/zh/basics/inspiration.md
index 9823ebd..b91438b 100644
--- a/contents/zh/basics/inspiration.md
+++ b/contents/zh/basics/inspiration.md
@@ -3,5 +3,5 @@
 当你有“不知道图表应该设计成什么样”或者“不知道如何使用 ECharts 实现某种效果”的疑问的时候,以下列表可以提供一些思路。
 
 - [ECharts 官方实例](${mainSitePath}/examples/zh/index.html)
-- [ECharts Gallery](https://gallery.echartsjs.com/)
 - 本手册的“应用篇 - 常用图表类型”
+- [makeapie.com](https://www.makeapie.com/)
diff --git a/contents/zh/posts.js b/contents/zh/posts.js
index 6548fc8..58b55bb 100644
--- a/contents/zh/posts.js
+++ b/contents/zh/posts.js
@@ -29,11 +29,13 @@ export default [{
         title: '图表容器及大小',
         dir: 'chart-size'
     }, {
-        title: '配置项基本概念',
-        dir: 'options'
+        title: '配置项',
+        dir: 'options',
+        draft: true
     }, {
         title: '系列',
-        dir: 'series'
+        dir: 'series',
+        draft: true
     }, {
         title: '数据集',
         dir: 'dataset'
@@ -42,7 +44,8 @@ export default [{
         dir: 'data-transform'
     }, {
         title: '坐标系',
-        dir: 'coordinate'
+        dir: 'coordinate',
+        draft: true
     }, {
         title: '坐标轴',
         dir: 'axis'
@@ -54,7 +57,8 @@ export default [{
         dir: 'legend'
     }, {
         title: '提示框',
-        dir: 'tooltip'
+        dir: 'tooltip',
+        draft: true
     }, {
         title: '事件与行为',
         dir: 'event'
@@ -76,16 +80,20 @@ export default [{
                 dir: 'stacked-bar'
             }, {
                 title: '动态排序柱状图',
-                dir: 'bar-race'
+                dir: 'bar-race',
+                draft: true
             }, {
                 title: '极坐标系柱状图',
-                dir: 'polar-bar'
+                dir: 'polar-bar',
+                draft: true
             }, {
                 title: '瀑布图',
-                dir: 'waterfall'
+                dir: 'waterfall',
+                draft: true
             }, {
                 title: '视觉映射的柱状图',
-                dir: 'visual-map'
+                dir: 'visual-map',
+                draft: true
             }]
         }, {
             title: '折线图',
@@ -129,7 +137,8 @@ export default [{
         }]
     }, {
         title: '移动端优化',
-        dir: 'mobile'
+        dir: 'mobile',
+        draft: true
     }, {
         title: '跨平台方案',
         dir: 'cross-platform',
@@ -151,24 +160,28 @@ export default [{
             dir: 'dynamic-data'
         }, {
             title: '数据下钻',
-            dir: 'drilldown'
+            dir: 'drilldown',
+            draft: true
         }]
     }, {
         title: '自定义构建',
         dir: 'custom-build'
     }, {
         title: '无障碍访问',
-        dir: 'aria'
+        dir: 'aria',
+        draft: true
     }, {
         title: '多图联动',
-        dir: 'connect'
+        dir: 'connect',
+        draft: true
     }]
 }, {
     title: '最佳实践',
     dir: 'best-practice',
     children: [{
         title: '移动端优化',
-        dir: 'mobile'
+        dir: 'mobile',
+        draft: true
     }, {
         title: 'Canvas vs. SVG',
         dir: 'canvas-vs-svg'
diff --git a/layouts/default.vue b/layouts/default.vue
index 12b87cf..e799fe3 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -48,12 +48,16 @@ export default {
 </script>
 
 <style lang="scss">
+.page-main {
+  overflow-x: hidden;
+}
+
 .handbook-content {
   margin-top: 50px;
 }
 
 .post-content {
-  margin-bottom: 80px;
+  margin: 30px 20px;
 }
 
 #toc {

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