From f13b3111c3d1f9cdd7bcca0f475255a3f4129a4b Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 17 Oct 2025 09:25:22 +0800 Subject: [PATCH 1/2] doc: plugin-doc-gen --- .gitignore | 4 +++- package.json | 3 ++- packages/core/basic/src/index.ts | 3 +-- packages/core/basic/src/utils/index.ts | 3 +++ packages/plugins/plugin-lib/src/index.ts | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index d81b17c0..d2d5d4ef 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,6 @@ test/**/*.js /packages/ui/certd-server/data/db.sqlite /packages/ui/certd-server/data/keys.yaml /packages/pro/ -test.js \ No newline at end of file +test.js + +.history \ No newline at end of file diff --git a/package.json b/package.json index d4e31b15..c68d1d4d 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,9 @@ "devb": "lerna run dev-build", "i-all": "lerna link && lerna exec npm install ", "publish": "npm run prepublishOnly2 && lerna publish --force-publish=pro/plus-core --conventional-commits --create-release github && npm run afterpublishOnly && npm run commitAll", - "afterpublishOnly": "npm run copylogs && time /t >trigger/build.trigger && git add ./trigger/build.trigger && git commit -m \"build: trigger build image\" && TIMEOUT /T 10 && git push", + "afterpublishOnly": "npm run plugin-doc-gen && npm run copylogs && time /t >trigger/build.trigger && git add ./trigger/build.trigger && git commit -m \"build: trigger build image\" && TIMEOUT /T 10 && git push", "transform-sql": "cd ./packages/ui/certd-server/db/ && node --experimental-json-modules transform.js", + "plugin-doc-gen": "cd ./packages/ui/certd-server/ && npm run export-md", "commitAll": "git add . && git commit -m \"build: publish\" && git push && npm run commitPro", "commitPro": "cd ./packages/pro/ && git add . && git commit -m \"build: publish\" && git push", "copylogs": "copyfiles \"CHANGELOG.md\" ./docs/guide/changelogs/", diff --git a/packages/core/basic/src/index.ts b/packages/core/basic/src/index.ts index 25cc7a63..07376964 100644 --- a/packages/core/basic/src/index.ts +++ b/packages/core/basic/src/index.ts @@ -1,2 +1 @@ -export * from './utils/index.js'; -export * from './utils/util.id.js'; +export * from "./utils/index.js"; diff --git a/packages/core/basic/src/utils/index.ts b/packages/core/basic/src/utils/index.ts index 048e29d2..582c42ba 100644 --- a/packages/core/basic/src/utils/index.ts +++ b/packages/core/basic/src/utils/index.ts @@ -37,6 +37,9 @@ import { mitter } from "./util.mitter.js"; import * as request from "./util.request.js"; export * from "./util.cache.js"; + +export * from "./util.id.js"; + export const utils = { sleep, http, diff --git a/packages/plugins/plugin-lib/src/index.ts b/packages/plugins/plugin-lib/src/index.ts index 00f11d4b..7208994b 100644 --- a/packages/plugins/plugin-lib/src/index.ts +++ b/packages/plugins/plugin-lib/src/index.ts @@ -7,4 +7,4 @@ export * from "./qiniu/index.js"; export * from "./ctyun/index.js"; export * from "./oss/index.js"; export * from "./s3/index.js"; -export * from "./lib/index.js"; +export * from "./lib/index.js"; \ No newline at end of file From eadbd5e8210bd74dc28948da8afa0f6728ce7ab9 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 17 Oct 2025 09:32:14 +0800 Subject: [PATCH 2/2] doc: plugin doc gen --- docs/guide/plugins/access.md | 105 ++++--- docs/guide/plugins/deploy.md | 118 +++++--- docs/guide/plugins/dns-provider.md | 20 +- docs/guide/plugins/notification.md | 3 + pnpm-lock.yaml | 466 ++++++++++++++++------------- 5 files changed, 422 insertions(+), 290 deletions(-) diff --git a/docs/guide/plugins/access.md b/docs/guide/plugins/access.md index b4e920fc..5d4a19c9 100644 --- a/docs/guide/plugins/access.md +++ b/docs/guide/plugins/access.md @@ -2,50 +2,67 @@ | 序号 | 名称 | 说明 | |-----|-----|-----| -| 1.| **阿里云授权** | | -| 2.| **EAB授权** | ZeroSSL证书申请需要EAB授权 | -| 3.| **google cloud** | 谷歌云授权 | -| 4.| **主机登录授权** | | -| 5.| **SFTP授权** | | -| 6.| **阿里云OSS授权** | 包含地域和Bucket | -| 7.| **FTP授权** | | -| 8.| **腾讯云** | | -| 9.| **腾讯云COS授权** | 腾讯云对象存储授权,包含地域和存储桶 | -| 10.| **七牛云授权** | | -| 11.| **七牛OSS授权** | | -| 12.| **天翼云授权** | | -| 13.| **s3/minio授权** | S3/minio oss授权 | -| 14.| **baota授权** | | -| 15.| **易盾DCDN授权** | https://user.yiduncdn.com | -| 16.| **易盾rcdn授权** | 易盾CDN,每月免费30G,[注册即领](https://rhcdn.yiduncdn.com/register?code=8mn536rrzfbf8) | -| 17.| **易发云短信** | sms.yfyidc.cn/ | -| 18.| **cdnfly授权** | | -| 19.| **群晖登录授权** | | -| 20.| **k8s授权** | | -| 21.| **1panel授权** | 账号和密码 | -| 22.| **百度云授权** | | -| 23.| **LeCDN授权** | | -| 24.| **白山云授权** | | -| 25.| **plesk授权** | | -| 26.| **易支付** | | -| 27.| **支付宝** | | -| 28.| **微信支付** | | -| 29.| **长亭雷池授权** | | -| 30.| **lucky** | | -| 31.| **括彩云cdn授权** | 括彩云CDN,每月免费30G,[注册即领](https://kuocaicdn.com/register?code=8mn536rrzfbf8) | -| 32.| **uniCloud** | unicloud授权 | -| 33.| **华为云授权** | | -| 34.| **西部数码授权** | | -| 35.| **多吉云** | | -| 36.| **我爱云授权** | 我爱云CDN | -| 37.| **CacheFly** | CacheFly | -| 38.| **Gcore** | Gcore | -| 39.| **亚马逊云aws授权** | | -| 40.| **dns.la授权** | | -| 41.| **又拍云** | | -| 42.| **火山引擎** | | -| 43.| **京东云** | | -| 44.| **51dns授权** | | +| 1.| **主机登录授权** | | +| 2.| **阿里云授权** | | +| 3.| **阿里云ESA授权** | | +| 4.| **腾讯云** | | +| 5.| **华为云授权** | | +| 6.| **火山引擎** | | +| 7.| **京东云** | | +| 8.| **七牛云授权** | | +| 9.| **天翼云授权** | | +| 10.| **baota授权** | | +| 11.| **百度云授权** | | +| 12.| **EAB授权** | ZeroSSL证书申请需要EAB授权 | +| 13.| **google cloud** | 谷歌云授权 | +| 14.| **SFTP授权** | | +| 15.| **阿里云OSS授权** | 包含地域和Bucket | +| 16.| **FTP授权** | | +| 17.| **腾讯云COS授权** | 腾讯云对象存储授权,包含地域和存储桶 | +| 18.| **七牛OSS授权** | | +| 19.| **s3/minio授权** | S3/minio oss授权 | +| 20.| **宝塔云WAF授权** | 用于连接和管理宝塔云WAF服务的授权配置 | +| 21.| **易盾DCDN授权** | https://user.yiduncdn.com | +| 22.| **易盾rcdn授权** | 易盾CDN,每月免费30G,[注册即领](https://rhcdn.yiduncdn.com/register?code=8mn536rrzfbf8) | +| 23.| **易发云短信** | sms.yfyidc.cn/ | +| 24.| **cdnfly授权** | | +| 25.| **群晖登录授权** | | +| 26.| **k8s授权** | | +| 27.| **1panel授权** | 账号和密码 | +| 28.| **LeCDN授权** | | +| 29.| **白山云授权** | | +| 30.| **plesk授权** | | +| 31.| **易支付** | | +| 32.| **支付宝** | | +| 33.| **微信支付** | | +| 34.| **长亭雷池授权** | | +| 35.| **lucky** | | +| 36.| **括彩云cdn授权** | 括彩云CDN,每月免费30G,[注册即领](https://kuocaicdn.com/register?code=8mn536rrzfbf8) | +| 37.| **uniCloud** | unicloud授权 | +| 38.| **猫云授权** | | +| 39.| **西部数码授权** | | +| 40.| **多吉云** | | +| 41.| **我爱云授权** | 我爱云CDN | +| 42.| **CacheFly** | CacheFly | +| 43.| **Gcore** | Gcore | +| 44.| **亚马逊云aws授权** | | +| 45.| **亚马逊云科技(国区)授权** | | +| 46.| **dns.la授权** | | +| 47.| **又拍云** | | +| 48.| **51dns授权** | | +| 49.| **FlexCDN授权** | | +| 50.| **farcdn授权** | | +| 51.| **cloudflare授权** | | +| 52.| **Github授权** | | +| 53.| **namesilo授权** | | +| 54.| **proxmox** | | +| 55.| **网宿授权** | | +| 56.| **金山云授权** | | +| 57.| **APISIX授权** | | +| 58.| **Dokploy授权** | | +| 59.| **godaddy授权** | | +| 60.| **新网授权** | | +| 61.| **雨云授权** | https://app.rainyun.com/ |