From 52f6941490a30e2ad05233cb4d9b10dfaeea2f6a Mon Sep 17 00:00:00 2001 From: yanxiong Date: Fri, 20 Oct 2023 13:35:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs:=201.=E8=A1=A5=E5=85=85=E5=AE=98?= =?UTF-8?q?=E7=BD=91=20CNAME=20=202.=E8=AE=A2=E6=AD=A3=E5=AE=98=E7=BD=91?= =?UTF-8?q?=E6=89=93=E5=8C=85=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dumirc.ts | 2 +- .gitignore | 3 ++- docs/CNAME | 2 +- package.json | 5 +++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.dumirc.ts b/.dumirc.ts index 543a7cf6..750bfb59 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -11,7 +11,7 @@ export default defineConfig({ entryFile: './src/index.tsx', }, title: 'L7 Editor - 基于 L7 的地理数据绘制工具', - outputPath: 'dist', + outputPath: 'docs-dist', copy: isProduction ? ['docs/CNAME'] : [], themeConfig: { name: 'L7 Editor', diff --git a/.gitignore b/.gitignore index 33085350..a31e03ec 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ yarn.lock /lib /umd /.kiwi -/.vscode \ No newline at end of file +/.vscode +/docs-dist \ No newline at end of file diff --git a/docs/CNAME b/docs/CNAME index b8a65898..953cf645 100644 --- a/docs/CNAME +++ b/docs/CNAME @@ -1 +1 @@ -l7editor.antv.antgroup.com \ No newline at end of file +l7editor.antv.vision \ No newline at end of file diff --git a/package.json b/package.json index 25f6627e..197bb947 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,10 @@ "setup": "dumi setup", "doctor": "father doctor", "docs:build": "dumi build", + "docs:build-analyze": "ANALYZE=1 dumi build", "docs:deploy": "gh-pages -d docs-dist", - "deploy": "npm run docs:build && npm run docs:deploy" + "deploy": "npm run docs:build && npm run docs:deploy", + "release": "npm run build && npm publish" }, "dependencies": { "@ant-design/icons": "^4.8.0", @@ -61,7 +63,6 @@ "wellknown": "^0.5.0", "xlsx": "^0.18.5" }, - "yuyanId": "180020010001251474", "devDependencies": { "@antv/l7": "^2.11.0", "@babel/runtime": "^7.22.10", From ca5e539e4eb4dee959ee58da2ab84909571e8b7c Mon Sep 17 00:00:00 2001 From: yanxiong Date: Fri, 20 Oct 2023 15:01:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 861df230..f7195bbb 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,9 @@
-🌍 L7Editor 是一个基于 L7 的地理数据编辑工具, +🌍 基于 L7 的地理数据编辑工具 -[![npm Version](https://img.shields.io/npm/v/@antv/l7-editor.svg)](https://www.npmjs.com/package/@antv/l7-editor) [![npm License](https://img.shields.io/npm/l/@antv/l7-editor.svg)](https://www.npmjs.com/package/@antv/l7-editor) ![Status](https://badgen.net/github/status/antvis/L7Editor) [![Release Status](https://github.com/antvis/L7Editor/workflows/release/badge.svg?branch=master)](https://github.com/antvis/L7Editor/actions?query=workflow:release) - - -[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/L7Editor.svg)](http://isitmaintained.com/project/antvis/L7Editor 'Percentage of issues still open') [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/antvis/L7Editor.svg)](http://isitmaintained.com/project/antvis/L7Editor 'Average time to resolve an issue') +[![npm Version](https://img.shields.io/npm/v/@antv/l7-editor.svg)](https://www.npmjs.com/package/@antv/l7-editor) [![npm License](https://img.shields.io/npm/l/@antv/l7-editor.svg)](https://www.npmjs.com/package/@antv/l7-editor)[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/L7Editor.svg)](http://isitmaintained.com/project/antvis/L7Editor 'Percentage of issues still open') [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/antvis/L7Editor.svg)](http://isitmaintained.com/project/antvis/L7Editor 'Average time to resolve an issue')

主页 • @@ -19,16 +16,13 @@ -## 📦 安装 +## 📦 组件 ```bash -npm install @antv/l7-editor +npm install @antv/l7-editor -S ``` -## 🔨 使用 - -```tsx | pure -// ----js----- +```jsx | pure import { L7Editor } from '@antv/l7-editor'; export default () => {