diff --git a/docs/guide/plugins/access.md b/docs/guide/plugins/access.md index cf5d7937..b4e920fc 100644 --- a/docs/guide/plugins/access.md +++ b/docs/guide/plugins/access.md @@ -46,3 +46,13 @@ | 42.| **火山引擎** | | | 43.| **京东云** | | | 44.| **51dns授权** | | + + + \ No newline at end of file diff --git a/docs/guide/plugins/deploy.md b/docs/guide/plugins/deploy.md index befefaf1..823897c1 100644 --- a/docs/guide/plugins/deploy.md +++ b/docs/guide/plugins/deploy.md @@ -118,3 +118,13 @@ | 3.| **自定义js脚本** | 【仅管理员】运行自定义js脚本执行 | | 4.| **等待** | 等待一段时间 | | 5.| **数据库备份** | 仅支持备份SQLite数据库 | + + + \ No newline at end of file diff --git a/docs/guide/plugins/dns-provider.md b/docs/guide/plugins/dns-provider.md index ee3ba5f3..1c4718ea 100644 --- a/docs/guide/plugins/dns-provider.md +++ b/docs/guide/plugins/dns-provider.md @@ -10,3 +10,13 @@ | 6.| **火山引擎** | 火山引擎DNS解析提供商 | | 7.| **京东云** | 京东云DNS解析提供商 | | 8.| **51dns** | 51DNS | + + + \ No newline at end of file diff --git a/docs/guide/plugins/notification.md b/docs/guide/plugins/notification.md index 6535ef6b..c9c72637 100644 --- a/docs/guide/plugins/notification.md +++ b/docs/guide/plugins/notification.md @@ -14,3 +14,13 @@ | 10.| **Slack通知** | Slack消息推送通知 | | 11.| **Bark 通知** | Bark 推送通知插件 | | 12.| **飞书通知** | 飞书群聊webhook通知 | + + + \ No newline at end of file diff --git a/packages/ui/certd-server/export-plugin-md.js b/packages/ui/certd-server/export-plugin-md.js index adb3f61c..aabc2907 100644 --- a/packages/ui/certd-server/export-plugin-md.js +++ b/packages/ui/certd-server/export-plugin-md.js @@ -17,6 +17,34 @@ function genPluginMd() { plugins.notification = notificationRegistry.getDefineList(); +// function genMd(list) { +// let mdContent = ` +// +// +// +// +// +// +// `; +// let i = 0; +// for (const x of list) { +// i++ +// mdContent += ``; +// } +// mdContent += `
序号名称说明
${i}. ${x.title} ${x.desc||''}
`; +// return mdContent; +// } + + // function genMd(list) { + // let mdContent = ``; + // let i = 0; + // for (const x of list) { + // i++ + // mdContent += `${i}. **${x.title}** \n${x.desc||''} \n\n\n`; + // } + // return mdContent; + // } + function genMd(list) { let mdContent = ` | 序号 | 名称 | 说明 | @@ -30,18 +58,34 @@ function genPluginMd() { return mdContent; } + function addTableStyle(){ + return ` + + ` + } + let mdContent = ""; mdContent = "# 授权列表\n"; mdContent += genMd(plugins.access); + mdContent += addTableStyle() fs.writeFileSync("../../../docs/guide/plugins/access.md", mdContent); mdContent = "# DNS提供商\n"; mdContent += genMd(plugins.dnsProvider); + mdContent += addTableStyle() fs.writeFileSync("../../../docs/guide/plugins/dns-provider.md", mdContent); mdContent = "# 通知插件\n"; mdContent += genMd(plugins.notification); + mdContent += addTableStyle() fs.writeFileSync("../../../docs/guide/plugins/notification.md", mdContent); @@ -53,9 +97,9 @@ function genPluginMd() { const group = pluginGroups[key]; mdContent += `## ${index}. ${group.title}\n`; mdContent += genMd(group.plugins); - fs.writeFileSync("../../../docs/guide/plugins/deploy.md", mdContent); } - + mdContent += addTableStyle() + fs.writeFileSync("../../../docs/guide/plugins/deploy.md", mdContent); process.exit() }