Skip to content

Commit

Permalink
Revert "feat: add js document (#813)"
Browse files Browse the repository at this point in the history
This reverts commit c5009a6.
  • Loading branch information
seeflood authored Oct 14, 2022
1 parent c5009a6 commit 0d2b4e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 68 deletions.
35 changes: 1 addition & 34 deletions docs/en/start/lock/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Demo success!
Download java sdk and examples:

```shell @if.not.exist java-sdk
git clone https://github.com/layotto/java-sdk.git
git clone https://github.com/layotto/java-sdk
```

Change directory:
Expand Down Expand Up @@ -138,39 +138,6 @@ TryLockResponse{success=true}
UnlockResponse{status=LOCK_UNEXIST}
```

### **JavaScript**

Download js sdk and examples:

```shell @if.not.exist js-sdk
git clone https://github.com/layotto/js-sdk.git
```

Change directory:

```shell
cd js-sdk/demo
```

Build:

```shell
npm install
```

Run the examples:

```shell
npm run test:lock
```

And you will see:

```bash
true
{ status: 0 }
```
<!-- tabs:end -->

## Next Step
Expand Down
35 changes: 1 addition & 34 deletions docs/zh/start/lock/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Demo success!
下载 java sdk 和示例代码:

```shell @if.not.exist java-sdk
git clone https://github.com/layotto/java-sdk.git
git clone https://github.com/layotto/java-sdk
```

切换目录:
Expand Down Expand Up @@ -138,39 +138,6 @@ TryLockResponse{success=true}
UnlockResponse{status=LOCK_UNEXIST}
```

### **JavaScript**

下载 js sdk 和示例代码:

```shell @if.not.exist js-sdk
git clone https://github.com/layotto/js-sdk.git
```

切换目录:

```shell
cd js-sdk/demo
```

构建:

```shell
npm install
```

运行:

```shell
npm run test:lock
```

打印出以下信息说明运行成功:

```bash
true
{ status: 0 }
```
<!-- tabs:end -->

## 下一步
Expand Down

0 comments on commit 0d2b4e3

Please sign in to comment.