From 5966ac75002e765d5b7be6373a9c22e59fdfa9fc Mon Sep 17 00:00:00 2001 From: thzxx <1440196015@qq.com> Date: Sun, 9 Aug 2026 20:25:57 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=AE=89=E8=A3=85=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=BA=20Gitea=20=E7=A7=81=E6=9C=89?= =?UTF-8?q?=E6=BA=90=EF=BC=88=E7=A7=BB=E9=99=A4=20jsDelivr/unpkg=20?= =?UTF-8?q?=E5=AE=98=E6=96=B9=E6=BA=90=E5=BC=95=E7=94=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 +++++++++++++------- site/demo.html | 4 ++-- site/docs.html | 7 +++++-- site/index.html | 8 ++++---- 4 files changed, 24 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 08cd68e..c53411d 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,16 @@ ### 方式一:npm 安装(推荐) +> 包托管于 MetonaTeam 自建 Gitea 私有 npm 源(`git.metona.cn`),不在 npm 官方源发布,安装时需指定 registry。 + ```bash +# 直接指定私有源安装 +npm install @metona-team/metona-editor --registry=https://git.metona.cn/api/packages/MetonaTeam/npm/ + +# 或配置项目 .npmrc(推荐,一次配置长期生效) +# .npmrc +@metona-team:registry=https://git.metona.cn/api/packages/MetonaTeam/npm/ + npm install @metona-team/metona-editor ``` @@ -78,15 +87,12 @@ const editor = MeEditor.create('#editor', { mode: 'split' }); ### 方式二:CDN 引入 ```html - - - - - - - + + + +