From cbfe04265a78ce07182500d776b038bcfeaafbbd Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 21 Nov 2019 13:40:24 +0800 Subject: [PATCH 1/3] :rocket: f2.antv.vision --- gatsby-config.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 241eb8e25..9a886542c 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -6,8 +6,7 @@ module.exports = { resolve: '@antv/gatsby-theme-antv', options: { // eslint-disable-next-line quotes - GATrackingId: `UA-148148901-6`, - pathPrefix: '/f2' + GATrackingId: `UA-148148901-6` } } ], @@ -15,6 +14,7 @@ module.exports = { siteMetadata: { title: 'F2', description: 'The Grammar of Graphics in JavaScript', + siteUrl: 'https://f2.antv.vision', githubUrl: repository.url, navs: [ { diff --git a/package.json b/package.json index fd6af7dd2..576a565c1 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ ], "devDependencies": { "@antv/data-set": "^0.10.2", - "@antv/gatsby-theme-antv": "^0.9.71", + "@antv/gatsby-theme-antv": "^0.9.85", "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/preset-env": "^7.0.0", From e6f8bba55e79fff9ad4fa55145e2ebad4e2d0388 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 21 Nov 2019 13:53:42 +0800 Subject: [PATCH 2/3] docs: update links in README --- README.md | 14 +++++++------- README.zh-CN.md | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4606894a0..dacb457e7 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ F2 is **born for mobile**, developed for developers as well as designers. It is Html5 Canvas-based, and is also compatible with Node.js, Weex and React Native. Based on [the grammar of graphics](https://www.cs.uic.edu/~wilkinson/TheGrammarOfGraphics/GOG.html), F2 provides all the chart types you'll need. Our mobile design guidelines enable better user experience in mobile visualzation projects. -

+

> Special thanks to [Leland Wilkinson](https://en.wikipedia.org/wiki/Leland_Wilkinson), the author of [*The Grammar Of Graphics*](https://www.cs.uic.edu/~wilkinson/TheGrammarOfGraphics/GOG.html), whose book served as the foundation for F2 and G2. @@ -38,7 +38,7 @@ $ npm install @antv/f2

### All the chart types you want -With the power of grammar of graphics, F2 supports data-driven [50+ chart types](https://antv.alipay.com/zh-cn/f2/3.x/api/index.html)(the amount can be even more, which is depended on you) including classical charts such as line, column/bar chart, pie chart, scatter plot, gauges, etc. Additionally, F2 also provides feature-riched chart components, such as Tooltip, Legend and Guide. +With the power of grammar of graphics, F2 supports data-driven [50+ chart types](https://f2.antv.vision/zh/examples)(the amount can be even more, which is depended on you) including classical charts such as line, column/bar chart, pie chart, scatter plot, gauges, etc. Additionally, F2 also provides feature-riched chart components, such as Tooltip, Legend and Guide. ### Flexible and Interactive We also provide developers with flexible extension mechanisms, including shape, animation, and interactive customization capabilities, as well as flexible styling to meet a variety of personalized charting requirements. @@ -47,10 +47,10 @@ We also provide developers with flexible extension mechanisms, including shape, ## Links -* [Website](https://antv.alipay.com/zh-cn/f2/3.x/index.html) -* English documents: https://antv.gitbook.io/f2/ -* Chart demos: https://antv.alipay.com/zh-cn/f2/3.x/demo/index.html -* 中文文档: https://antv.alipay.com/zh-cn/f2/3.x/api/index.html +* [Website](https://f2.antv.vision/) +* English documents: https://f2.antv.vision/en +* Chart demos: https://f2.antv.vision/en/examples +* 中文文档: https://f2.antv.vision/zh ## Other libraries base on F2 * [ant-design-mobile-chart](https://github.com/ant-design/ant-design-mobile-chart): Ant Design Mobile Chart based on F2. (React). @@ -60,7 +60,7 @@ We also provide developers with flexible extension mechanisms, including shape, ## Demos -[Chart Demos](https://antv.alipay.com/zh-cn/f2/3.x/demo/index.html) +[Chart Demos](https://f2.antv.vision/en/examples) **Or just scan the below qrcode to see demos in mobile:** diff --git a/README.zh-CN.md b/README.zh-CN.md index 66d44baba..f43769da6 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -29,7 +29,7 @@ $ npm install @antv/f2 - **轻巧流畅**:F2 一直致力于追求极致的性能,针对移动设备做了大量的优化,在支持丰富(50+)图表的基础上同时保持代码量的小巧(不带交互版本 gzip 压缩后 44k,带所有交互版本 56k),同时提供模块化的设计以支持动态加载,提供更优的大小。 -- **多端异构**:在完美支持 H5 环境的同时,同时兼容 [Node.js](https://antv.alipay.com/zh-cn/f2/3.x/tutorial/node-env.html),[支付宝小程序](https://github.com/antvis/my-f2)、[微信小程序](https://github.com/antvis/wx-f2)、[React Native](https://github.com/chenshuai2144/f2-demo)以及 [Weex 端](https://github.com/weex-plugins/weex-chart)的渲染,一份代码,多设备多环境渲染。 +- **多端异构**:在完美支持 H5 环境的同时,同时兼容 [Node.js](https://f2.antv.vision/zh/docs/tutorial/manual/node-env),[支付宝小程序](https://github.com/antvis/my-f2)、[微信小程序](https://github.com/antvis/wx-f2)、[React Native](https://github.com/chenshuai2144/f2-demo)以及 [Weex 端](https://github.com/weex-plugins/weex-chart)的渲染,一份代码,多设备多环境渲染。

@@ -47,9 +47,9 @@ $ npm install @antv/f2 ## 文档 -- [使用教程](https://antv.alipay.com/zh-cn/f2/3.x/tutorial/index.html) -- [API](https://antv.alipay.com/zh-cn/f2/3.x/api/index.html) -- [图表示例](https://antv.alipay.com/zh-cn/f2/3.x/demo/index.html) +- [使用教程](https://f2.antv.vision/zh/docs/tutorial/getting-started) +- [API](https://f2.antv.vision/zh/docs/api) +- [图表示例](https://f2.antv.vision/zh/examples) ## 快速开始 @@ -84,7 +84,7 @@ chart.interval().position('year*sales'); chart.render(); ``` -更多示例:[demos](https://antv.alipay.com/zh-cn/f2/3.x/demo/index.html)。 +更多示例:[demos](https://f2.antv.vision/zh/examples)。 **手机扫码观看 demos** From afc4e6044413e0237272137c266dd0e9bc95e3ae Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 21 Nov 2019 18:08:03 +0800 Subject: [PATCH 3/3] :up: upgrade @antv/gatsby-theme-antv --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 576a565c1..68c171258 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ ], "devDependencies": { "@antv/data-set": "^0.10.2", - "@antv/gatsby-theme-antv": "^0.9.85", + "@antv/gatsby-theme-antv": "^0.9.92", "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/preset-env": "^7.0.0",