diff --git a/packages/site/.dumirc.ts b/packages/site/.dumirc.ts index 498037ea16..d7eff26413 100644 --- a/packages/site/.dumirc.ts +++ b/packages/site/.dumirc.ts @@ -3,14 +3,18 @@ const path = require('path'); const env = process.env.NODE_ENV; console.log(env); export default defineConfig({ - locales: [ - { id: 'zh', name: '中文' }, - { id: 'en', name: 'English' }, - ], - + locales: [{ id: 'zh', name: '中文' }, { id: 'en', name: 'English' }], + copy: env ==='production' ? ['docs/CNAME'] : [], themeConfig: { title: 'L7', isAntVSite: false, + internalSite: { + url: 'https://l7.antv.antgroup.com', + name: { + zh: '国内镜像', + en: 'China Mirror', + }, + }, description: 'Large-scale WebGL-powered Geospatial data visualization analysis framework', siteUrl: 'https://l7.antv.antgroup.com/', @@ -49,7 +53,7 @@ export default defineConfig({ }, ], }, - msfu: true, + msfu:false, features: [ { icon: @@ -611,45 +615,32 @@ export default defineConfig({ indexName: 'antv_l7', }, }, - extraBabelPlugins: - env === 'development' - ? [ - // 开发模式下以原始文本引入,便于调试 - [ - // import glsl as raw text - 'babel-plugin-inline-import', - { extensions: ['.glsl', '.worker.js'] }, - ], - // ['transform-import-css-l7'], - ] - : [], + extraBabelPlugins:[ + // 开发模式下以原始文本引入,便于调试 + [ + // import glsl as raw text + 'babel-plugin-inline-import', + { extensions: ['.glsl','.worker.js'] }, + ], + // ['transform-import-css-l7'], + ], links: [], scripts: [ 'https://webapi.amap.com/maps?v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f', ], - internalSite: { - url: 'https://s2.antv.antgroup.com', - name: { - zh: '国内镜像', - en: 'China Mirror', - }, - }, - alias: - env === 'development' - ? { - '@antv/l7': path.resolve(__dirname, '../l7/src'), - '@antv/l7-mini': path.resolve(__dirname, '../mini/src'), - '@antv/l7-maps/lib/map': path.resolve(__dirname, '../maps/src/map'), - '@antv/l7-core': path.resolve(__dirname, '../core/src'), - '@antv/l7-component': path.resolve(__dirname, '../component/src'), - '@antv/l7-three': path.resolve(__dirname, '../three/src'), - '@antv/l7-layers': path.resolve(__dirname, '../layers/src'), - '@antv/l7-map': path.resolve(__dirname, '../map/src'), - '@antv/l7-maps': path.resolve(__dirname, '../maps/src'), - '@antv/l7-renderer': path.resolve(__dirname, '../renderer/src'), - '@antv/l7-scene': path.resolve(__dirname, '../scene/src'), - '@antv/l7-source': path.resolve(__dirname, '../source/src'), - '@antv/l7-utils': path.resolve(__dirname, '../utils/src'), - } - : {}, + alias: { + '@antv/l7': path.resolve(__dirname, '../l7/src'), + '@antv/l7-mini': path.resolve(__dirname, '../mini/src'), + '@antv/l7-maps/lib/map': path.resolve(__dirname, '../maps/src/map'), + '@antv/l7-core': path.resolve(__dirname, '../core/src'), + '@antv/l7-component': path.resolve(__dirname, '../component/src'), + '@antv/l7-three': path.resolve(__dirname, '../three/src'), + '@antv/l7-layers': path.resolve(__dirname, '../layers/src'), + '@antv/l7-map': path.resolve(__dirname, '../map/src'), + '@antv/l7-maps': path.resolve(__dirname, '../maps/src'), + '@antv/l7-renderer': path.resolve(__dirname, '../renderer/src'), + '@antv/l7-scene': path.resolve(__dirname, '../scene/src'), + '@antv/l7-source': path.resolve(__dirname, '../source/src'), + '@antv/l7-utils': path.resolve(__dirname, '../utils/src') + } }); diff --git a/packages/site/docs/CNAME b/packages/site/docs/CNAME new file mode 100644 index 0000000000..35ff76cb26 --- /dev/null +++ b/packages/site/docs/CNAME @@ -0,0 +1 @@ +l7.antv.vision \ No newline at end of file diff --git a/packages/site/docs/tutorial/l7.zh.md b/packages/site/docs/tutorial/l7.zh.md index a845a381fb..113cbe9573 100644 --- a/packages/site/docs/tutorial/l7.zh.md +++ b/packages/site/docs/tutorial/l7.zh.md @@ -7,7 +7,7 @@ order: 0 # L7 地理空间数据可视分析引擎 -✨ 2022.06.28 2.9 版本正式发布 +✨ 2022.11.22 2.10 版本正式发布 ⚠️ 1.x 版本的用户需求我们持续跟进 [旧版官网地址](https://antv-2018.alipay.com/zh-cn/l7/1.x/index.html) diff --git a/packages/site/package.json b/packages/site/package.json index dc00897d2a..36dc6cacba 100644 --- a/packages/site/package.json +++ b/packages/site/package.json @@ -27,19 +27,16 @@ "site:clean": "rm -rf ./dumi/tmp && rm -rf ./dumi/tmp-production && rm -rf .umi/ && rm rf ./dist", "lint:fix": "prettier --write docs/api/**/*.md docs/api/*.md *.md", "build": "yarn site:build", - "site:deploy": "npm run site:build && gh-pages -d public", + "site:deploy": "npm run site:build && gh-pages -d dist", "site:develop": "dumi dev", "site:build": "dumi build", "start": "npm run site:develop", - "site:publish": "gh-pages -d public" + "site:publish": "gh-pages -d dist" }, "devDependencies": { "@antv/dumi-theme-antv": "^0.3.0", "@antv/g2": "^4.2.8", - "@antv/l7": "2.11.1", "@antv/l7-draw": "^3.0.9", - "@antv/l7-maps": "2.11.1", - "@antv/l7-three": "2.11.1", "@antv/l7plot": "^0.3.3", "@antv/util": "^2.0.9", "@turf/turf": "^6.5.0", diff --git a/packages/site/public_site/CNAME b/packages/site/public_site/CNAME new file mode 100644 index 0000000000..35ff76cb26 --- /dev/null +++ b/packages/site/public_site/CNAME @@ -0,0 +1 @@ +l7.antv.vision \ No newline at end of file diff --git a/packages/site/public_site/index.html b/packages/site/public_site/index.html new file mode 100644 index 0000000000..f6d19fa727 --- /dev/null +++ b/packages/site/public_site/index.html @@ -0,0 +1,12 @@ + + + + + + +

L7 官网

+ 新官网迁移至 https://l7.antv.antgroup.com/ 访问速度更快 + + \ No newline at end of file