-
-
-
-
- {[
- "$ pipx install nb-cli",
- "$ nb",
- "d8b db .d88b. d8b db d88888b d8888b. .d88b. d888888b",
- "888o 88 .8P Y8. 888o 88 88' 88 `8D .8P Y8. `~~88~~'",
- "88V8o 88 88 88 88V8o 88 88ooooo 88oooY' 88 88 88",
- "88 V8o88 88 88 88 V8o88 88~~~~~ 88~~~b. 88 88 88",
- "88 V888 `8b d8' 88 V888 88. 88 8D `8b d8' 88",
- "VP V8P `Y88P' VP V8P Y88888P Y8888P' `Y88P' YP",
- "[?] What do you want to do?",
- "❯ Create a NoneBot project.",
- " Run the bot in current folder",
- " Generate entry file of your bot",
- " Manage bot plugins.",
- " Manage bot adapters.",
- " Manage bot driver.",
- " ...",
- ].join("\n")}
-
-
-
-
-
-
-
- {[
- "[project.entry-points.nb]",
- 'plugin_name = "cli_plugin.plugin:install"',
- "",
- "[project.entry-points.nb_scripts]",
- 'foo = "awesome_bot.module:function"',
- ].join("\n")}
-
-
-
-
-
-
- {[
- "[?] 你想要进行什么操作?",
- "❯ 创建一个 NoneBot 项目.",
- " 管理 bot 插件.",
- " 管理 bot 适配器.",
- " 管理 bot 驱动器.",
- ].join("\n")}
-
-
-
-
+
);
}
diff --git a/website/src/plugins/webpack-plugin.ts b/website/src/plugins/webpack-plugin.ts
new file mode 100644
index 00000000..17be95d5
--- /dev/null
+++ b/website/src/plugins/webpack-plugin.ts
@@ -0,0 +1,18 @@
+import path from "path";
+
+import type { PluginConfig } from "@docusaurus/types";
+
+export default (function webpackPlugin() {
+ return {
+ name: "webpack-plugin",
+ configureWebpack() {
+ return {
+ resolve: {
+ alias: {
+ "@": path.resolve(__dirname, "../"),
+ },
+ },
+ };
+ },
+ };
+} satisfies PluginConfig);
diff --git a/website/src/scripts/nb_adapter.py b/website/src/scripts/nb_adapter.py
deleted file mode 100644
index 258d1bb4..00000000
--- a/website/src/scripts/nb_adapter.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from nb_cli.cli import cli, adapter
-
-"$ nb adapter --help\n" + adapter.get_help(
- adapter.make_context(
- "adapter",
- ["--help"],
- parent=cli.make_context("nb", []),
- resilient_parsing=True,
- )
-)
diff --git a/website/src/scripts/nb_create.py b/website/src/scripts/nb_create.py
deleted file mode 100644
index f8581823..00000000
--- a/website/src/scripts/nb_create.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from nb_cli.cli import cli, create
-
-"$ nb create --help\n" + create.get_help(
- create.make_context(
- "create",
- ["--help"],
- parent=cli.make_context("nb", []),
- resilient_parsing=True,
- )
-)
diff --git a/website/src/scripts/nb_driver.py b/website/src/scripts/nb_driver.py
deleted file mode 100644
index 4af24425..00000000
--- a/website/src/scripts/nb_driver.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from nb_cli.cli import cli, driver
-
-"$ nb driver --help\n" + driver.get_help(
- driver.make_context(
- "driver",
- ["--help"],
- parent=cli.make_context("nb", []),
- resilient_parsing=True,
- )
-)
diff --git a/website/src/scripts/nb_generate.py b/website/src/scripts/nb_generate.py
deleted file mode 100644
index 0c4ad59e..00000000
--- a/website/src/scripts/nb_generate.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from nb_cli.cli import cli, generate
-
-"$ nb generate --help\n" + generate.get_help(
- generate.make_context(
- "generate",
- ["--help"],
- parent=cli.make_context("nb", []),
- resilient_parsing=True,
- )
-)
diff --git a/website/src/scripts/nb_plugin.py b/website/src/scripts/nb_plugin.py
deleted file mode 100644
index 9ec111e0..00000000
--- a/website/src/scripts/nb_plugin.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from nb_cli.cli import cli, plugin
-
-"$ nb plugin --help\n" + plugin.get_help(
- plugin.make_context(
- "plugin",
- ["--help"],
- parent=cli.make_context("nb", []),
- resilient_parsing=True,
- )
-)
diff --git a/website/src/scripts/nb_run.py b/website/src/scripts/nb_run.py
deleted file mode 100644
index 3128e137..00000000
--- a/website/src/scripts/nb_run.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from nb_cli.cli import cli, run
-
-"$ nb run --help\n" + run.get_help(
- run.make_context(
- "run",
- ["--help"],
- parent=cli.make_context("nb", []),
- resilient_parsing=True,
- )
-)
diff --git a/website/src/scripts/nb_self.py b/website/src/scripts/nb_self.py
deleted file mode 100644
index 026ed91e..00000000
--- a/website/src/scripts/nb_self.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from nb_cli.cli import cli, self
-
-"$ nb self --help\n" + self.get_help(
- self.make_context(
- "self",
- ["--help"],
- parent=cli.make_context("nb", []),
- resilient_parsing=True,
- )
-)
diff --git a/website/src/theme/FooterCopyright/index.tsx b/website/src/theme/FooterCopyright/index.tsx
deleted file mode 100644
index 42cbd185..00000000
--- a/website/src/theme/FooterCopyright/index.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-import React from "react";
-
-import Link from "@docusaurus/Link";
-import OriginCopyright from "@theme-original/FooterCopyright";
-
-function FooterCopyright() {
- return (
- <>
-