mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-20 09:38:23 +08:00
🔧 change docusaurus prism config
This commit is contained in:
parent
fba9471fe6
commit
e9908bcbc4
@ -14,12 +14,19 @@ description: 部署你的机器人
|
|||||||
在生产环境中,为确保机器人能够正常运行,你需要固定你的依赖库版本。下面提供了几种常见的文件格式与生成方式:
|
在生产环境中,为确保机器人能够正常运行,你需要固定你的依赖库版本。下面提供了几种常见的文件格式与生成方式:
|
||||||
|
|
||||||
- `poetry.lock`
|
- `poetry.lock`
|
||||||
|
|
||||||
[poetry](https://python-poetry.org/) 依赖管理工具使用的 lock 文件,通常会在安装依赖时自动生成,或者使用 `poetry lock` 来生成。
|
[poetry](https://python-poetry.org/) 依赖管理工具使用的 lock 文件,通常会在安装依赖时自动生成,或者使用 `poetry lock` 来生成。
|
||||||
|
|
||||||
- `pdm.lock`
|
- `pdm.lock`
|
||||||
|
|
||||||
[pdm](https://pdm.fming.dev/) 依赖管理工具使用的 lock 文件,通常会在安装依赖时自动生成,或者使用 `pdm lock` 来生成。
|
[pdm](https://pdm.fming.dev/) 依赖管理工具使用的 lock 文件,通常会在安装依赖时自动生成,或者使用 `pdm lock` 来生成。
|
||||||
|
|
||||||
- `Pipfile.lock`
|
- `Pipfile.lock`
|
||||||
|
|
||||||
[Pipenv](https://pipenv.pypa.io/en/latest/) 依赖管理工具使用的 lock 文件,通常会在安装依赖时自动生成,或者使用 `pipenv lock` 来生成。
|
[Pipenv](https://pipenv.pypa.io/en/latest/) 依赖管理工具使用的 lock 文件,通常会在安装依赖时自动生成,或者使用 `pipenv lock` 来生成。
|
||||||
|
|
||||||
- `requirements.txt`
|
- `requirements.txt`
|
||||||
|
|
||||||
如果你未使用任何依赖管理工具,你可以使用 `pip freeze` 来生成这个文件。
|
如果你未使用任何依赖管理工具,你可以使用 `pip freeze` 来生成这个文件。
|
||||||
|
|
||||||
## 使用 Docker 部署(推荐)
|
## 使用 Docker 部署(推荐)
|
||||||
@ -95,7 +102,7 @@ services:
|
|||||||
|
|
||||||
将以下文件添加至项目下的 `.github/workflows/` 目录下:
|
将以下文件添加至项目下的 `.github/workflows/` 目录下:
|
||||||
|
|
||||||
```yaml title=.github/workflows/build.yml {31}
|
```yaml title=.github/workflows/build.yml {30}
|
||||||
name: Docker Hub Release
|
name: Docker Hub Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -198,7 +205,7 @@ jobs:
|
|||||||
|
|
||||||
参考:[Uvicorn - Supervisor](https://www.uvicorn.org/deployment/#supervisor)
|
参考:[Uvicorn - Supervisor](https://www.uvicorn.org/deployment/#supervisor)
|
||||||
|
|
||||||
```conf
|
```ini
|
||||||
[supervisord]
|
[supervisord]
|
||||||
|
|
||||||
[fcgi-program:nonebot]
|
[fcgi-program:nonebot]
|
||||||
|
@ -36,12 +36,12 @@ const config = {
|
|||||||
editUrl: "https://github.com/nonebot/nonebot2/edit/master/website/",
|
editUrl: "https://github.com/nonebot/nonebot2/edit/master/website/",
|
||||||
showLastUpdateAuthor: true,
|
showLastUpdateAuthor: true,
|
||||||
showLastUpdateTime: true,
|
showLastUpdateTime: true,
|
||||||
exclude: [
|
// exclude: [
|
||||||
// "**/_*.{js,jsx,ts,tsx,md,mdx}",
|
// "**/_*.{js,jsx,ts,tsx,md,mdx}",
|
||||||
// "**/_*/**",
|
// "**/_*/**",
|
||||||
"**/*.test.{js,jsx,ts,tsx}",
|
// "**/*.test.{js,jsx,ts,tsx}",
|
||||||
"**/__tests__/**",
|
// "**/__tests__/**",
|
||||||
],
|
// ],
|
||||||
},
|
},
|
||||||
sitemap: {
|
sitemap: {
|
||||||
changefreq: "daily",
|
changefreq: "daily",
|
||||||
@ -155,15 +155,13 @@ const config = {
|
|||||||
prism: {
|
prism: {
|
||||||
theme: lightCodeTheme,
|
theme: lightCodeTheme,
|
||||||
darkTheme: darkCodeTheme,
|
darkTheme: darkCodeTheme,
|
||||||
|
additionalLanguages: ["docker", "ini"],
|
||||||
},
|
},
|
||||||
algolia: {
|
algolia: {
|
||||||
appId: "X0X5UACHZQ",
|
appId: "X0X5UACHZQ",
|
||||||
apiKey: "ac03e1ac2bd0812e2ea38c0cc1ea38c5",
|
apiKey: "ac03e1ac2bd0812e2ea38c0cc1ea38c5",
|
||||||
indexName: "nonebot",
|
indexName: "nonebot",
|
||||||
contextualSearch: true,
|
contextualSearch: true,
|
||||||
// searchParameters: {
|
|
||||||
// facetFilters: ["lang:zh-CN"],
|
|
||||||
// },
|
|
||||||
},
|
},
|
||||||
tailwindConfig: require("./tailwind.config"),
|
tailwindConfig: require("./tailwind.config"),
|
||||||
customCss: [require.resolve("./src/css/custom.css")],
|
customCss: [require.resolve("./src/css/custom.css")],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user