docs: 安装方式修正为 Gitea 私有源(移除 jsDelivr/unpkg 官方源引用)
CI / test-rest (push) Successful in 9m25s
CI / e2e (push) Successful in 9m41s
CI / verify (18.x) (push) Successful in 9m50s
CI / verify (20.x) (push) Successful in 9m48s
CI / verify (24.x) (push) Successful in 9m43s
CI / test-parser (push) Successful in 9m25s
CI / test-core (push) Successful in 9m35s
CI / test-rest (push) Successful in 9m25s
CI / e2e (push) Successful in 9m41s
CI / verify (18.x) (push) Successful in 9m50s
CI / verify (20.x) (push) Successful in 9m48s
CI / verify (24.x) (push) Successful in 9m43s
CI / test-parser (push) Successful in 9m25s
CI / test-core (push) Successful in 9m35s
This commit is contained in:
@@ -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
|
||||
<!-- jsDelivr CDN (推荐) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/@metona-team/metona-editor@0.4.1/dist/metona-editor.min.js"></script>
|
||||
|
||||
<!-- unpkg CDN -->
|
||||
<script src="https://unpkg.com/@metona-team/metona-editor@0.4.1/dist/metona-editor.min.js"></script>
|
||||
|
||||
<!-- Gitea 源 -->
|
||||
<!-- Gitea 源(私有仓库需登录,公开仓库直接可访问) -->
|
||||
<script src="https://git.metona.cn/MetonaTeam/MetonaEditor/raw/branch/master/dist/metona-editor.js"></script>
|
||||
|
||||
<!-- 本地构建产物(下载 dist 后引入) -->
|
||||
<script src="./dist/metona-editor.min.js"></script>
|
||||
|
||||
<div id="editor"></div>
|
||||
<script>
|
||||
const editor = MeEditor.create('#editor', { mode: 'split' });
|
||||
|
||||
Reference in New Issue
Block a user