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:04:01 UTC
[echarts-handbook] 02/02: feat: hide posts that are not ready
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