Skip to content

Commit a6ccedd

Browse files
Unifying syntax styling (#66)
* Fix ai syntaxes * Fix apps syntax * Fix auth syntax * Fix fs syntax * Fix syntax workers * Fix syntax hosting * Fix syntax kv * Fix syntax ui * Fix syntax utils
1 parent 4b45da9 commit a6ccedd

28 files changed

+51
-50
lines changed

src/AI/chat.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Given a prompt returns the completion that best matches the prompt.
99
## Syntax
1010

1111
```js
12-
puter.ai.chat(prompt);
13-
puter.ai.chat(prompt, (options = {}));
14-
puter.ai.chat(prompt, (testMode = false), (options = {}));
15-
puter.ai.chat(prompt, imageURL, (testMode = false), (options = {}));
16-
puter.ai.chat(prompt, [imageURLArray], (testMode = false), (options = {}));
17-
puter.ai.chat([messages], (testMode = false), (options = {}));
12+
puter.ai.chat(prompt)
13+
puter.ai.chat(prompt, options = {})
14+
puter.ai.chat(prompt, testMode = false, options = {})
15+
puter.ai.chat(prompt, imageURL, testMode = false, options = {})
16+
puter.ai.chat(prompt, [imageURLArray], testMode = false, options = {})
17+
puter.ai.chat([messages], testMode = false, options = {})
1818
```
1919

2020
## Parameters

src/AI/img2txt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Given an image will return the text contained in the image. Also known as OCR (O
99
## Syntax
1010

1111
```js
12-
puter.ai.img2txt(image, (testMode = false));
12+
puter.ai.img2txt(image, testMode = false)
1313
```
1414

1515
## Parameters

src/AI/txt2img.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Given a prompt, generate an image using AI.
99
## Syntax
1010

1111
```js
12-
puter.ai.txt2img(prompt, (testMode = false))
13-
puter.ai.txt2img(prompt, (options = {}))
12+
puter.ai.txt2img(prompt, testMode = false)
13+
puter.ai.txt2img(prompt, options = {})
1414
```
1515

1616
## Parameters

src/Apps/create.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Creates a Puter app with the given name. The app will be created in the user's a
99
## Syntax
1010

1111
```js
12-
puter.apps.create(name, indexURL);
13-
puter.apps.create(name, indexURL, title);
14-
puter.apps.create(name, indexURL, title, description);
15-
puter.apps.create(options);
12+
puter.apps.create(name, indexURL)
13+
puter.apps.create(name, indexURL, title)
14+
puter.apps.create(name, indexURL, title, description)
15+
puter.apps.create(options)
1616
```
1717

1818
## Parameters

src/Apps/delete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Deletes an app with the given name.
99
## Syntax
1010

1111
```js
12-
puter.apps.delete(name);
12+
puter.apps.delete(name)
1313
```
1414

1515
## Parameters

src/Apps/get.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Returns an app with the given name. If the app does not exist, the promise will
99
## Syntax
1010

1111
```js
12-
puter.apps.get(name);
13-
puter.apps.get(name, options);
12+
puter.apps.get(name)
13+
puter.apps.get(name, options)
1414
```
1515

1616
## Parameters

src/Apps/list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Returns an array of all apps belonging to the user and that this app has access
99
## Syntax
1010

1111
```js
12-
puter.apps.list();
13-
puter.apps.list(options);
12+
puter.apps.list()
13+
puter.apps.list(options)
1414
```
1515

1616
## Parameters

src/Auth/getDetailedAppUsage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Users can only see the usage of applications they have accessed before.
1515
## Syntax
1616

1717
```js
18-
puter.auth.getDetailedAppUsage(appId);
18+
puter.auth.getDetailedAppUsage(appId)
1919
```
2020

2121
## Parameters

src/Auth/getMonthlyUsage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Get the user's current monthly resource usage in the Puter ecosystem.
99
## Syntax
1010

1111
```js
12-
puter.auth.getMonthlyUsage();
12+
puter.auth.getMonthlyUsage()
1313
```
1414

1515
## Parameters

src/Auth/getUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Returns the user's basic information.
99
## Syntax
1010

1111
```js
12-
puter.auth.getUser();
12+
puter.auth.getUser()
1313
```
1414

1515
## Parameters

0 commit comments

Comments
 (0)