Skip to content

Commit

Permalink
remove download file from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevie-Ray committed Oct 15, 2024
1 parent 6421b71 commit 49c2c44
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 50 deletions.
1 change: 0 additions & 1 deletion packages/docs/src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default defineConfig({
text: "Core API",
link: "/api/",
items: [
{ text: "Download", link: "/api/download" },
{ text: "IsActive", link: "/api/is-active" },
{ text: "IsDevice", link: "/api/is-device" },
{ text: "Tare", link: "/api/tare" },
Expand Down
44 changes: 0 additions & 44 deletions packages/docs/src/api/download.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/docs/src/api/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Core API Reference

- [Download](/api/download)
- [IsActive](/api/is-active)
- [IsDevice](/api/is-device)
- [Tare](/api/tare)
6 changes: 3 additions & 3 deletions packages/docs/src/api/is-active.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
### Supported Devices

```ts
import { Entralpi, Motherboard, Progressor, WHC06 } from "@hangtime/grip-connect"
import { Entralpi, ForceBoard, Motherboard, Progressor, WHC06 } from "@hangtime/grip-connect"
```

### Basic Usage

```ts
import { active, isActive, notify, Progressor } from "@hangtime/grip-connect"
import { active, isActive, Progressor } from "@hangtime/grip-connect"

const progressor = new Progressor()

progressor.connect(
// Listen for stream notifications
notify((data) => {
progressor.notify((data) => {
// data: { massTotal: "0", massMax: "0", massAverage: "0", massLeft: "0", massCenter: "0", massRight: "0" }

// Manually log the current activity status of the device
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/api/is-device.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ progressor.connect(async () => {
* @param {Device} [board] - The device to check.
* @returns {boolean} - `true` if the device matches, otherwise `false`.
*/
if (isProgressor(board)) {
if (isProgressor(progressor)) {
// Handle the Progressor device
}
})
Expand Down

0 comments on commit 49c2c44

Please sign in to comment.