PaiGramDocs/README.md
2023-10-24 20:27:37 +08:00

57 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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.0Please 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.