diff --git a/.babelrc.js b/.babelrc.js index 4404e3449e..923002c051 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -5,7 +5,7 @@ module.exports = (api) => { const isTest = api.env('site') - if (isTest) { + if (!isTest) { return { "plugins": [ "transform-remove-strict-mode" diff --git a/package.json b/package.json index e4b253c337..ad0e27ff75 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ ], "license": "MIT", "devDependencies": { - "@antv/gatsby-theme-antv": "^0.9.92", + "@antv/gatsby-theme-antv": "^0.9.95", "@antv/torch": "^1.0.5", "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", diff --git a/site/pages/index.zh.tsx b/site/pages/index.zh.tsx index abf6f6b74e..ae1157fced 100644 --- a/site/pages/index.zh.tsx +++ b/site/pages/index.zh.tsx @@ -83,18 +83,7 @@ const IndexPage = () => { ]; const notifications = [ - { - type: t('洞察关系数据'), - title: t('G6 3.2.0 全新发布!'), - date: '2019.11.22', - link: 'https://www.yuque.com/antv/blog/wy2qd6', - }, - { - type: t('小试牛刀'), - title: t('Graphin 1.0.0 全新发布!'), - date: '2019.11.22', - link: 'https://antvis.github.io/graphin', - } + ]; const cases = [ @@ -151,7 +140,6 @@ const IndexPage = () => { description={t( 'G6 是一个简单、易用、完备的图可视化引擎,它在高定制能力的基础上,提供了一系列设计优雅、便于使用的图可视化解决方案。能帮助开发者搭建属于自己的图可视化、图分析、或图编辑器应用。', )} - notifications={notifications} className="banner" buttons={bannerButtons} />