📝 Docs: 插件发布表单描述优化 (#3520)

This commit is contained in:
StarHeart
2025-06-17 17:03:06 +08:00
committed by GitHub
parent a0ecd63e7c
commit 6d35481209
5 changed files with 52 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
import React from "react";
import Link from "@docusaurus/Link";
import { Form } from ".";
export default function PluginForm(): React.ReactNode {
@@ -8,7 +10,7 @@ export default function PluginForm(): React.ReactNode {
name: "包信息",
items: [
{ type: "text", name: "pypi", labelText: "PyPI 项目名" },
{ type: "text", name: "module", labelText: "插件 import 包名" },
{ type: "text", name: "module", labelText: "插件模块名" },
],
},
{
@@ -29,7 +31,25 @@ export default function PluginForm(): React.ReactNode {
);
};
const description = (
<p>
{" "}
<Link
className="text-primary"
href="https://nonebot.dev/docs/developer/plugin-publishing"
>
NoneBot
</Link>
</p>
);
return (
<Form type="plugin" formItems={formItems} handleSubmit={handleSubmit} />
<Form
type="plugin"
formItems={formItems}
handleSubmit={handleSubmit}
description={description}
/>
);
}