Skip to content

Commit d318943

Browse files
Update Docs (tauri-apps#449)
* chore(docs): Update Rust & TS docs * fix index id Co-authored-by: FabianLars <[email protected]> Co-authored-by: FabianLars <[email protected]>
1 parent efa56b7 commit d318943

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+564
-600
lines changed

docs/api/js/index.md renamed to docs/api/js/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22

33
# @tauri-apps/api
44

5-
The Tauri API allows you to interface with the backend layer.
6-
7-
This module exposes all other modules as an object where the key is the module name, and the value is the module exports.
8-
9-
**`example`**
10-
```typescript
11-
import { app, dialog, event, fs, globalShortcut } from '@tauri-apps/api'
12-
```
13-
14-
## Namespaces
5+
## Modules
156

167
- [app](modules/app.md)
178
- [cli](modules/cli.md)
@@ -21,6 +12,7 @@ import { app, dialog, event, fs, globalShortcut } from '@tauri-apps/api'
2112
- [fs](modules/fs.md)
2213
- [globalShortcut](modules/globalShortcut.md)
2314
- [http](modules/http.md)
15+
- [mocks](modules/mocks.md)
2416
- [notification](modules/notification.md)
2517
- [os](modules/os.md)
2618
- [path](modules/path.md)

docs/api/js/classes/http.Body.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[@tauri-apps/api](../index.md) / [http](../modules/http.md) / Body
1+
[@tauri-apps/api](../README.md) / [http](../modules/http.md) / Body
22

33
# Class: Body
44

@@ -14,7 +14,7 @@ The body object to be used on POST and PUT requests.
1414

1515
#### Defined in
1616

17-
[http.ts:64](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L64)
17+
[http.ts:64](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L64)
1818

1919
___
2020

@@ -24,7 +24,7 @@ ___
2424

2525
#### Defined in
2626

27-
[http.ts:63](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L63)
27+
[http.ts:63](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L63)
2828

2929
## Methods
3030

@@ -48,7 +48,7 @@ The body object ready to be used on the POST and PUT requests.
4848

4949
#### Defined in
5050

51-
[http.ts:119](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L119)
51+
[http.ts:119](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L119)
5252

5353
___
5454

@@ -72,7 +72,7 @@ The body object ready to be used on the POST and PUT requests.
7272

7373
#### Defined in
7474

75-
[http.ts:79](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L79)
75+
[http.ts:79](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L79)
7676

7777
___
7878

@@ -96,7 +96,7 @@ The body object ready to be used on the POST and PUT requests.
9696

9797
#### Defined in
9898

99-
[http.ts:97](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L97)
99+
[http.ts:97](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L97)
100100

101101
___
102102

@@ -120,4 +120,4 @@ The body object ready to be used on the POST and PUT requests.
120120

121121
#### Defined in
122122

123-
[http.ts:108](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L108)
123+
[http.ts:108](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L108)

docs/api/js/classes/http.Client.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[@tauri-apps/api](../index.md) / [http](../modules/http.md) / Client
1+
[@tauri-apps/api](../README.md) / [http](../modules/http.md) / Client
22

33
# Class: Client
44

@@ -12,7 +12,7 @@
1212

1313
#### Defined in
1414

15-
[http.ts:189](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L189)
15+
[http.ts:189](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L189)
1616

1717
## Methods
1818

@@ -43,7 +43,7 @@ A promise resolving to the response.
4343

4444
#### Defined in
4545

46-
[http.ts:333](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L333)
46+
[http.ts:333](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L333)
4747

4848
___
4949

@@ -59,7 +59,7 @@ Drops the client instance.
5959

6060
#### Defined in
6161

62-
[http.ts:200](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L200)
62+
[http.ts:200](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L200)
6363

6464
___
6565

@@ -90,7 +90,7 @@ A promise resolving to the response.
9090

9191
#### Defined in
9292

93-
[http.ts:261](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L261)
93+
[http.ts:261](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L261)
9494

9595
___
9696

@@ -121,7 +121,7 @@ A promise resolving to the response.
121121

122122
#### Defined in
123123

124-
[http.ts:318](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L318)
124+
[http.ts:318](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L318)
125125

126126
___
127127

@@ -153,7 +153,7 @@ A promise resolving to the response.
153153

154154
#### Defined in
155155

156-
[http.ts:277](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L277)
156+
[http.ts:277](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L277)
157157

158158
___
159159

@@ -185,7 +185,7 @@ A promise resolving to the response.
185185

186186
#### Defined in
187187

188-
[http.ts:298](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L298)
188+
[http.ts:298](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L298)
189189

190190
___
191191

@@ -215,4 +215,4 @@ A promise resolving to the response.
215215

216216
#### Defined in
217217

218-
[http.ts:216](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L216)
218+
[http.ts:216](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L216)

docs/api/js/classes/http.Response.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[@tauri-apps/api](../index.md) / [http](../modules/http.md) / Response
1+
[@tauri-apps/api](../README.md) / [http](../modules/http.md) / Response
22

33
# Class: Response<T\>
44

@@ -22,7 +22,7 @@ The response data.
2222

2323
#### Defined in
2424

25-
[http.ts:175](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L175)
25+
[http.ts:175](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L175)
2626

2727
___
2828

@@ -34,7 +34,7 @@ The response headers.
3434

3535
#### Defined in
3636

37-
[http.ts:171](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L171)
37+
[http.ts:171](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L171)
3838

3939
___
4040

@@ -46,7 +46,7 @@ A boolean indicating whether the response was successful (status in the range 20
4646

4747
#### Defined in
4848

49-
[http.ts:169](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L169)
49+
[http.ts:169](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L169)
5050

5151
___
5252

@@ -58,7 +58,7 @@ The response raw headers.
5858

5959
#### Defined in
6060

61-
[http.ts:173](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L173)
61+
[http.ts:173](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L173)
6262

6363
___
6464

@@ -70,7 +70,7 @@ The response status code.
7070

7171
#### Defined in
7272

73-
[http.ts:167](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L167)
73+
[http.ts:167](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L167)
7474

7575
___
7676

@@ -82,4 +82,4 @@ The request URL.
8282

8383
#### Defined in
8484

85-
[http.ts:165](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/http.ts#L165)
85+
[http.ts:165](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/http.ts#L165)

docs/api/js/classes/shell.Child.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[@tauri-apps/api](../index.md) / [shell](../modules/shell.md) / Child
1+
[@tauri-apps/api](../README.md) / [shell](../modules/shell.md) / Child
22

33
# Class: Child
44

@@ -18,7 +18,7 @@
1818

1919
#### Defined in
2020

21-
[shell.ts:183](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L183)
21+
[shell.ts:183](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L183)
2222

2323
## Properties
2424

@@ -30,7 +30,7 @@ The child process `pid`.
3030

3131
#### Defined in
3232

33-
[shell.ts:181](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L181)
33+
[shell.ts:181](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L181)
3434

3535
## Methods
3636

@@ -48,7 +48,7 @@ A promise indicating the success or failure of the operation.
4848

4949
#### Defined in
5050

51-
[shell.ts:218](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L218)
51+
[shell.ts:218](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L218)
5252

5353
___
5454

@@ -80,4 +80,4 @@ A promise indicating the success or failure of the operation.
8080

8181
#### Defined in
8282

83-
[shell.ts:201](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L201)
83+
[shell.ts:201](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L201)

docs/api/js/classes/shell.Command.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[@tauri-apps/api](../index.md) / [shell](../modules/shell.md) / Command
1+
[@tauri-apps/api](../README.md) / [shell](../modules/shell.md) / Command
22

33
# Class: Command
44

@@ -49,7 +49,7 @@ Creates a new `Command` instance.
4949

5050
#### Defined in
5151

52-
[shell.ts:266](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L266)
52+
[shell.ts:266](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L266)
5353

5454
## Properties
5555

@@ -61,7 +61,7 @@ Event emitter for the `stderr`. Emits the `data` event.
6161

6262
#### Defined in
6363

64-
[shell.ts:256](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L256)
64+
[shell.ts:256](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L256)
6565

6666
___
6767

@@ -73,7 +73,7 @@ Event emitter for the `stdout`. Emits the `data` event.
7373

7474
#### Defined in
7575

76-
[shell.ts:254](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L254)
76+
[shell.ts:254](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L254)
7777

7878
## Methods
7979

@@ -100,7 +100,7 @@ A promise resolving to the child process output.
100100

101101
#### Defined in
102102

103-
[shell.ts:343](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L343)
103+
[shell.ts:343](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L343)
104104

105105
___
106106

@@ -129,7 +129,7 @@ The `this` instance for chained calls.
129129

130130
#### Defined in
131131

132-
[shell.ts:173](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L173)
132+
[shell.ts:173](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L173)
133133

134134
___
135135

@@ -147,7 +147,7 @@ A promise resolving to the child process handle.
147147

148148
#### Defined in
149149

150-
[shell.ts:306](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L306)
150+
[shell.ts:306](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L306)
151151

152152
___
153153

@@ -177,4 +177,4 @@ const output = await command.execute()
177177

178178
#### Defined in
179179

180-
[shell.ts:291](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L291)
180+
[shell.ts:291](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L291)

docs/api/js/classes/shell.EventEmitter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[@tauri-apps/api](../index.md) / [shell](../modules/shell.md) / EventEmitter
1+
[@tauri-apps/api](../README.md) / [shell](../modules/shell.md) / EventEmitter
22

33
# Class: EventEmitter<E\>
44

@@ -51,4 +51,4 @@ The `this` instance for chained calls.
5151

5252
#### Defined in
5353

54-
[shell.ts:173](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/shell.ts#L173)
54+
[shell.ts:173](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/shell.ts#L173)

docs/api/js/classes/window.LogicalPosition.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[@tauri-apps/api](../index.md) / [window](../modules/window.md) / LogicalPosition
1+
[@tauri-apps/api](../README.md) / [window](../modules/window.md) / LogicalPosition
22

33
# Class: LogicalPosition
44

@@ -21,7 +21,7 @@ A position represented in logical pixels.
2121

2222
#### Defined in
2323

24-
[window.ts:159](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/window.ts#L159)
24+
[window.ts:159](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/window.ts#L159)
2525

2626
## Properties
2727

@@ -31,7 +31,7 @@ A position represented in logical pixels.
3131

3232
#### Defined in
3333

34-
[window.ts:155](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/window.ts#L155)
34+
[window.ts:155](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/window.ts#L155)
3535

3636
___
3737

@@ -41,7 +41,7 @@ ___
4141

4242
#### Defined in
4343

44-
[window.ts:156](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/window.ts#L156)
44+
[window.ts:156](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/window.ts#L156)
4545

4646
___
4747

@@ -51,4 +51,4 @@ ___
5151

5252
#### Defined in
5353

54-
[window.ts:157](https://github.com/tauri-apps/tauri/blob/d24045e/tooling/api/src/window.ts#L157)
54+
[window.ts:157](https://github.com/tauri-apps/tauri/blob/e1b2d2b/tooling/api/src/window.ts#L157)

0 commit comments

Comments
 (0)