Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjr committed Jul 3, 2023
1 parent da83169 commit 6df5aa3
Showing 1 changed file with 16 additions and 26 deletions.
42 changes: 16 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,31 @@
# Website
# bddjr toolbox v2 document
BTBv2扩展文档

This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
***
## 拉取并运行

### Installation
演示环境:Windows 的 powershell

```
$ yarn
```

### Local Development
请在对应目录打开 powershell ,再执行如下操作。

1、使用 git 从 github 仓库拉取内容。
> 如果你需要提交 Pull Request ,请 fork 为自己的仓库,再从自己的仓库拉取。
```
$ yarn start
git clone -b doc --single-branch https://github.com/bddjr/clipcc-extension-bddjr_toolbox_v2 clipcc-extension-bddjr_toolbox_v2/doc/
cd clipcc-extension-bddjr_toolbox_v2/doc/
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

### Build

2、使用 nodejs 的 npm 全局安装 yarn
```
$ yarn build
npm -g install yarn
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.

### Deployment

Using SSH:

3、使用 yarn 安装前置插件
```
$ USE_SSH=true yarn deploy
yarn install
```

Not using SSH:

4、使用 yarn 运行
```
$ GIT_USER=<Your GitHub username> yarn deploy
yarn start
```

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

0 comments on commit 6df5aa3

Please sign in to comment.