Skip to content

Commit e79414b

Browse files
committed
feat(homepage): add typedoc reference for @pod-os/core
1 parent 1aecf6d commit e79414b

36 files changed

+3134
-8
lines changed

core/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"build:types": "rimraf types && tsc --emitDeclarationOnly --outDir types",
1818
"build:types:watch": "rimraf types && tsc --emitDeclarationOnly --outDir types --watch",
1919
"build:watch": "node esbuild/watch-esm.mjs",
20+
"build:doc": "typedoc",
2021
"dev": "run-p build:types:watch build:watch",
2122
"build": " npm run build:bundle && npm run build:types && npm run build:esm"
2223
},
@@ -40,6 +41,8 @@
4041
"prettier": "^3.6.2",
4142
"rimraf": "^6.0.1",
4243
"sparqljs": "^3.7.3",
44+
"typedoc": "^0.28.12",
45+
"typedoc-plugin-markdown": "^4.8.1",
4346
"typescript": "5.9.2",
4447
"typescript-eslint": "^8.41.0"
4548
},

core/typedoc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugin": ["typedoc-plugin-markdown"],
3+
"entryPoints": ["src/index.ts"],
4+
"out": "../homepage/docs/reference/core"
5+
}

homepage/docs/reference/.nav.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ nav:
99
- elements/apps
1010
- elements/components
1111
- '@pod-os/core':
12-
- core/index.md
12+
- core/index.md
13+
- core/*
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
[**@pod-os/core**](../README.md)
2+
3+
***
4+
5+
[@pod-os/core](../globals.md) / AnonymousSession
6+
7+
# Class: AnonymousSession
8+
9+
Defined in: [authentication/index.ts:20](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/authentication/index.ts#L20)
10+
11+
## Implements
12+
13+
- [`PodOsSession`](../interfaces/PodOsSession.md)
14+
15+
## Constructors
16+
17+
### Constructor
18+
19+
> **new AnonymousSession**(): `AnonymousSession`
20+
21+
#### Returns
22+
23+
`AnonymousSession`
24+
25+
## Accessors
26+
27+
### authenticatedFetch
28+
29+
#### Get Signature
30+
31+
> **get** **authenticatedFetch**(): (`url`, `init?`) => `Promise`\<`Response`\>
32+
33+
Defined in: [authentication/index.ts:27](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/authentication/index.ts#L27)
34+
35+
##### Returns
36+
37+
> (`url`, `init?`): `Promise`\<`Response`\>
38+
39+
###### Parameters
40+
41+
###### url
42+
43+
`RequestInfo`
44+
45+
###### init?
46+
47+
`RequestInit`
48+
49+
###### Returns
50+
51+
`Promise`\<`Response`\>
52+
53+
#### Implementation of
54+
55+
[`PodOsSession`](../interfaces/PodOsSession.md).[`authenticatedFetch`](../interfaces/PodOsSession.md#authenticatedfetch)
56+
57+
## Methods
58+
59+
### login()
60+
61+
> **login**(): `Promise`\<`void`\>
62+
63+
Defined in: [authentication/index.ts:38](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/authentication/index.ts#L38)
64+
65+
#### Returns
66+
67+
`Promise`\<`void`\>
68+
69+
#### Implementation of
70+
71+
[`PodOsSession`](../interfaces/PodOsSession.md).[`login`](../interfaces/PodOsSession.md#login)
72+
73+
***
74+
75+
### logout()
76+
77+
> **logout**(): `Promise`\<`void`\>
78+
79+
Defined in: [authentication/index.ts:42](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/authentication/index.ts#L42)
80+
81+
#### Returns
82+
83+
`Promise`\<`void`\>
84+
85+
#### Implementation of
86+
87+
[`PodOsSession`](../interfaces/PodOsSession.md).[`logout`](../interfaces/PodOsSession.md#logout)
88+
89+
***
90+
91+
### observeSession()
92+
93+
> **observeSession**(): `BehaviorSubject`\<[`SessionInfo`](../type-aliases/SessionInfo.md)\>
94+
95+
Defined in: [authentication/index.ts:34](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/authentication/index.ts#L34)
96+
97+
#### Returns
98+
99+
`BehaviorSubject`\<[`SessionInfo`](../type-aliases/SessionInfo.md)\>
100+
101+
#### Implementation of
102+
103+
[`PodOsSession`](../interfaces/PodOsSession.md).[`observeSession`](../interfaces/PodOsSession.md#observesession)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[**@pod-os/core**](../README.md)
2+
3+
***
4+
5+
[@pod-os/core](../globals.md) / AssumeAlwaysOnline
6+
7+
# Class: AssumeAlwaysOnline
8+
9+
Defined in: [offline-cache/OnlineStatus.ts:5](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/offline-cache/OnlineStatus.ts#L5)
10+
11+
## Implements
12+
13+
- [`OnlineStatus`](../interfaces/OnlineStatus.md)
14+
15+
## Constructors
16+
17+
### Constructor
18+
19+
> **new AssumeAlwaysOnline**(): `AssumeAlwaysOnline`
20+
21+
#### Returns
22+
23+
`AssumeAlwaysOnline`
24+
25+
## Methods
26+
27+
### isOnline()
28+
29+
> **isOnline**(): `boolean`
30+
31+
Defined in: [offline-cache/OnlineStatus.ts:6](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/offline-cache/OnlineStatus.ts#L6)
32+
33+
#### Returns
34+
35+
`boolean`
36+
37+
#### Implementation of
38+
39+
[`OnlineStatus`](../interfaces/OnlineStatus.md).[`isOnline`](../interfaces/OnlineStatus.md#isonline)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[**@pod-os/core**](../README.md)
2+
3+
***
4+
5+
[@pod-os/core](../globals.md) / BinaryFile
6+
7+
# Class: BinaryFile
8+
9+
Defined in: [files/BinaryFile.ts:3](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BinaryFile.ts#L3)
10+
11+
## Implements
12+
13+
- [`SolidFile`](../interfaces/SolidFile.md)
14+
15+
## Constructors
16+
17+
### Constructor
18+
19+
> **new BinaryFile**(`url`, `data`): `BinaryFile`
20+
21+
Defined in: [files/BinaryFile.ts:4](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BinaryFile.ts#L4)
22+
23+
#### Parameters
24+
25+
##### url
26+
27+
`string`
28+
29+
##### data
30+
31+
`Blob`
32+
33+
#### Returns
34+
35+
`BinaryFile`
36+
37+
## Properties
38+
39+
### url
40+
41+
> `readonly` **url**: `string`
42+
43+
Defined in: [files/BinaryFile.ts:5](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BinaryFile.ts#L5)
44+
45+
#### Implementation of
46+
47+
[`SolidFile`](../interfaces/SolidFile.md).[`url`](../interfaces/SolidFile.md#url)
48+
49+
## Methods
50+
51+
### blob()
52+
53+
> **blob**(): `Blob`
54+
55+
Defined in: [files/BinaryFile.ts:9](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BinaryFile.ts#L9)
56+
57+
#### Returns
58+
59+
`Blob`
60+
61+
#### Implementation of
62+
63+
[`SolidFile`](../interfaces/SolidFile.md).[`blob`](../interfaces/SolidFile.md#blob)
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
[**@pod-os/core**](../README.md)
2+
3+
***
4+
5+
[@pod-os/core](../globals.md) / BrokenFile
6+
7+
# Class: BrokenFile
8+
9+
Defined in: [files/BrokenFile.ts:4](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BrokenFile.ts#L4)
10+
11+
## Implements
12+
13+
- [`SolidFile`](../interfaces/SolidFile.md)
14+
15+
## Constructors
16+
17+
### Constructor
18+
19+
> **new BrokenFile**(`url`, `status`): `BrokenFile`
20+
21+
Defined in: [files/BrokenFile.ts:5](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BrokenFile.ts#L5)
22+
23+
#### Parameters
24+
25+
##### url
26+
27+
`string`
28+
29+
##### status
30+
31+
[`HttpStatus`](HttpStatus.md)
32+
33+
#### Returns
34+
35+
`BrokenFile`
36+
37+
## Properties
38+
39+
### status
40+
41+
> `readonly` **status**: [`HttpStatus`](HttpStatus.md)
42+
43+
Defined in: [files/BrokenFile.ts:7](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BrokenFile.ts#L7)
44+
45+
***
46+
47+
### url
48+
49+
> `readonly` **url**: `string`
50+
51+
Defined in: [files/BrokenFile.ts:6](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BrokenFile.ts#L6)
52+
53+
#### Implementation of
54+
55+
[`SolidFile`](../interfaces/SolidFile.md).[`url`](../interfaces/SolidFile.md#url)
56+
57+
## Methods
58+
59+
### blob()
60+
61+
> **blob**(): `null` \| `Blob`
62+
63+
Defined in: [files/BrokenFile.ts:14](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BrokenFile.ts#L14)
64+
65+
#### Returns
66+
67+
`null` \| `Blob`
68+
69+
#### Implementation of
70+
71+
[`SolidFile`](../interfaces/SolidFile.md).[`blob`](../interfaces/SolidFile.md#blob)
72+
73+
***
74+
75+
### toString()
76+
77+
> **toString**(): `string`
78+
79+
Defined in: [files/BrokenFile.ts:10](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/BrokenFile.ts#L10)
80+
81+
Returns a string representation of an object.
82+
83+
#### Returns
84+
85+
`string`
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[**@pod-os/core**](../README.md)
2+
3+
***
4+
5+
[@pod-os/core](../globals.md) / HttpStatus
6+
7+
# Class: HttpStatus
8+
9+
Defined in: [files/HttpStatus.ts:1](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/HttpStatus.ts#L1)
10+
11+
## Constructors
12+
13+
### Constructor
14+
15+
> **new HttpStatus**(`code`, `text?`): `HttpStatus`
16+
17+
Defined in: [files/HttpStatus.ts:2](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/HttpStatus.ts#L2)
18+
19+
#### Parameters
20+
21+
##### code
22+
23+
`number`
24+
25+
##### text?
26+
27+
`string`
28+
29+
#### Returns
30+
31+
`HttpStatus`
32+
33+
## Properties
34+
35+
### code
36+
37+
> `readonly` **code**: `number`
38+
39+
Defined in: [files/HttpStatus.ts:3](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/HttpStatus.ts#L3)
40+
41+
***
42+
43+
### text?
44+
45+
> `readonly` `optional` **text**: `string`
46+
47+
Defined in: [files/HttpStatus.ts:4](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/HttpStatus.ts#L4)
48+
49+
## Methods
50+
51+
### toString()
52+
53+
> **toString**(): `string`
54+
55+
Defined in: [files/HttpStatus.ts:7](https://github.com/pod-os/PodOS/blob/1aecf6de76fa668e7779c8aad7b604e498d41244/core/src/files/HttpStatus.ts#L7)
56+
57+
#### Returns
58+
59+
`string`

0 commit comments

Comments
 (0)