From 4adf7b41b9fdd6ba83bc09b21f8f55b1e7be0142 Mon Sep 17 00:00:00 2001 From: jelveh Date: Fri, 17 Apr 2026 12:05:10 -0700 Subject: [PATCH] Remove Drivers docs and sidebar entry --- src/docs/src/Drivers.md | 10 ---------- src/docs/src/Drivers/call.md | 33 --------------------------------- src/docs/src/sidebar.js | 16 ---------------- 3 files changed, 59 deletions(-) delete mode 100644 src/docs/src/Drivers.md delete mode 100755 src/docs/src/Drivers/call.md diff --git a/src/docs/src/Drivers.md b/src/docs/src/Drivers.md deleted file mode 100644 index c23b63e8d..000000000 --- a/src/docs/src/Drivers.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Drivers -description: Interact and access various system resources with Puter drivers. ---- - -The Drivers API allows you to interact with puter drivers. It provides a way to access and control various system resources and peripherals. - -## Available Functions - -- **[`puter.drivers.call()`](/Drivers/call/)** - Call driver functions \ No newline at end of file diff --git a/src/docs/src/Drivers/call.md b/src/docs/src/Drivers/call.md deleted file mode 100755 index e95b204ff..000000000 --- a/src/docs/src/Drivers/call.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: puter.drivers.call() -description: Call drivers that are not directly exposed by Puter.js high level API. -platforms: [websites, apps, nodejs, workers] ---- - - -A low-level function that allows you to call any driver on any interface. This function is useful when you want to call a driver that is not directly exposed by Puter.js's high-level API or for when you need more control over the driver call. - -## Syntax -```js -puter.drivers.call(interface, driver, method) -puter.drivers.call(interface, driver, method, args = {}) -``` - -## Parameters -#### `interface` (String) (Required) -The name of the interface you want to call. - -#### `driver` (String) (Required) -The name of the driver you want to call. - -#### `method` (String) (Required) -The name of the method you want to call on the driver. - -#### `args` (Array) (Optional) -An object containing the arguments you want to pass to the driver. - -## Return value - -A `Promise` that will resolve to the result of the driver call. The result can be of any type, depending on the driver you are calling. - -In case of an error, the `Promise` will reject with an error message. diff --git a/src/docs/src/sidebar.js b/src/docs/src/sidebar.js index 6f98d79b1..0d6379807 100755 --- a/src/docs/src/sidebar.js +++ b/src/docs/src/sidebar.js @@ -1074,22 +1074,6 @@ let sidebar = [ }, ], }, - { - title: 'Drivers', - title_tag: 'Drivers', - source: '/Drivers.md', - path: '/Drivers', - children: [ - { - title: 'call', - page_title: 'puter.drivers.call()', - title_tag: 'puter.drivers.call()', - icon: '/assets/img/function.svg', - source: '/Drivers/call.md', - path: '/Drivers/call', - }, - ], - }, { title: 'Utilities', title_tag: 'Utilities',