* chore: publish

* fix: update dumi-theme-antv version

* docs: raster 文档

* fix: docs 样式

* docs: lint

* docs: lint

* docs: 官网配置

* fix: geojson vt

* fix: 更新dumi 配置

* fix: 更新文档

* docs: 文档

* docs: 更新文档

Co-authored-by: Dreammy23 <caomengyuan2015@163.com>
This commit is contained in:
@thinkinggis 2022-11-23 17:30:08 +08:00 committed by GitHub
parent 868e504326
commit 3d00eb1936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 51 additions and 49 deletions

View File

@ -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,9 +615,7 @@ export default defineConfig({
indexName: 'antv_l7',
},
},
extraBabelPlugins:
env === 'development'
? [
extraBabelPlugins:[
// 开发模式下以原始文本引入,便于调试
[
// import glsl as raw text
@ -621,22 +623,12 @@ export default defineConfig({
{ 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'
? {
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'),
@ -649,7 +641,6 @@ export default defineConfig({
'@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'),
'@antv/l7-utils': path.resolve(__dirname, '../utils/src')
}
: {},
});

1
packages/site/docs/CNAME Normal file
View File

@ -0,0 +1 @@
l7.antv.vision

View File

@ -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)

View File

@ -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",

View File

@ -0,0 +1 @@
l7.antv.vision

View File

@ -0,0 +1,12 @@
<html>
<head>
<script>
window.location.replace('https://l7.antv.antgroup.com/')
</script>
</head>
<body>
<h1>L7 官网</h1>
新官网迁移至 https://l7.antv.antgroup.com/ 访问速度更快
</body>
</html>