From 16c3d63e6eee25a1ef764da22c9b671d0c0865a5 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 24 Oct 2023 20:27:37 +0800 Subject: [PATCH] :bug: Fix search --- README.md | 56 ++++++++++++++++++++++++++++++++++++++ docs/.vitepress/algolia.ts | 6 ++-- 2 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..654b574 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# PaimonDocs [![GitHub license](https://img.shields.io/github/license/PaiGramTeam/PaiGramDocs?style=flat-square)](https://github.com/PaiGramTeam/PaiGramDocs/blob/main/LICENSE) + +这里是 [PaiGram](https://github.com/PaiGramTeam/PaiGram) 的说明文档,用来记录使用方法和开发指南。 + +欢迎在 Issues 中提出文档需求,或直接向本仓库提交文档。 + +## Initialize the project locally + +Environment requirements: + +- [Node.js](https://nodejs.org) 16.14.0+ + +### 1. Enable corepack & pnpm + +> If your Node.js version is lower than 16.13.0,Please install [corepack](https://nodejs.org/api/corepack.html) first. +> +> ```shell +> npm install -g corepack +> ``` + +```shell +corepack enable +corepack prepare pnpm@latest --activate +``` + +### 2. Clone the repository + +```shell +git clone https://github.com/PaiGramTeam/PaiGramDocs.git +cd PaiGramDocs +``` + +### 2. Install dependencies + +```shell +pnpm install +``` + +### 3. Start the development server + +```shell +pnpm dev +``` + +This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. + +### 4. Some useful commands + +`pnpm dev` +Starts the development server. + +`pnpm build` +Bundles your website into static files for production. + +`pnpm serve` +Serves the built website locally. diff --git a/docs/.vitepress/algolia.ts b/docs/.vitepress/algolia.ts index 6b1addf..0e3ffe9 100644 --- a/docs/.vitepress/algolia.ts +++ b/docs/.vitepress/algolia.ts @@ -1,7 +1,7 @@ export default { - appId: 'AU4G7FKYJF', - apiKey: 'e934cbf9d54f02be212594ad8b5a1373', - indexName: 'grambot', + appId: 'ZKX7GPMM8X', + apiKey: '28b61ecf1a108ae4777ccb158a384e29', + indexName: 'paimon', placeholder: '请输入关键词', translations: { button: {