Skip to content

Commit 1b66a73

Browse files
authored
docs: ensure docs are up to date & use stable links in sdk reference (#2368)
* docs: ensure docs are up to date & use stable links in sdk reference * fix(ci): lint docs output
1 parent dd376d3 commit 1b66a73

File tree

830 files changed

+1193
-1177
lines changed

Some content is hidden

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

830 files changed

+1193
-1177
lines changed

.github/workflows/on-pull-request.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ jobs:
195195
- name: Typecheck Test
196196
run: yarn test:typecheck
197197

198+
- name: Check SDK reference docs are up to date
199+
run: |
200+
yarn docs:sdk
201+
yarn lint:write
202+
git diff --exit-code docs/pages/reference/ || \
203+
(echo "::error::SDK reference docs are out of date. Run 'yarn docs:sdk' and commit the changes." && exit 1)
204+
198205
build_ios:
199206
name: Build iOS
200207
runs-on: macos-14

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ vocs.config.tsx.timestamp-*.mjs
3838
bin
3939
**/.turbo
4040

41+
# TypeDoc generated media (source files copied for source links)
42+
docs/pages/reference/_media
43+
4144
# Turborepo
4245
.turbo
4346

docs/pages/reference/aa-sdk/core/src/classes/AccountNotFoundError.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: reference
77

88
{/* This file is auto-generated by TypeDoc. Do not edit manually. */}
99

10-
Defined in: [aa-sdk/core/src/errors/account.ts:8](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/account.ts#L8)
10+
Defined in: [aa-sdk/core/src/errors/account.ts:8](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L8)
1111

1212
This error is thrown when an account could not be found to execute a specific action. It extends the `BaseError` class.
1313

@@ -23,7 +23,7 @@ This error is thrown when an account could not be found to execute a specific ac
2323
new AccountNotFoundError(): AccountNotFoundError;
2424
```
2525

26-
Defined in: [aa-sdk/core/src/errors/account.ts:15](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/account.ts#L15)
26+
Defined in: [aa-sdk/core/src/errors/account.ts:15](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L15)
2727

2828
Constructor for initializing an error message indicating that an account could not be found to execute the specified action.
2929

docs/pages/reference/aa-sdk/core/src/classes/AccountRequiresOwnerError.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: reference
77

88
{/* This file is auto-generated by TypeDoc. Do not edit manually. */}
99

10-
Defined in: [aa-sdk/core/src/errors/account.ts:138](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/account.ts#L138)
10+
Defined in: [aa-sdk/core/src/errors/account.ts:138](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L138)
1111

1212
Represents an error that occurs when an account requires an owner to execute but none is provided.
1313

@@ -23,7 +23,7 @@ Represents an error that occurs when an account requires an owner to execute but
2323
new AccountRequiresOwnerError(accountType): AccountRequiresOwnerError;
2424
```
2525

26-
Defined in: [aa-sdk/core/src/errors/account.ts:146](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/account.ts#L146)
26+
Defined in: [aa-sdk/core/src/errors/account.ts:146](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L146)
2727

2828
Constructs an error indicating that an account of the specified type requires an owner to execute.
2929

docs/pages/reference/aa-sdk/core/src/classes/BaseError.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: reference
77

88
{/* This file is auto-generated by TypeDoc. Do not edit manually. */}
99

10-
Defined in: [aa-sdk/core/src/errors/base.ts:24](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/base.ts#L24)
10+
Defined in: [aa-sdk/core/src/errors/base.ts:24](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/base.ts#L24)
1111

1212
A custom error class that extends from `ViemBaseError`. This class allows for error messages to include links to relevant documentation based on provided `docsPath` and `docsSlug` parameters.
1313
This is based on on viem's BaseError type (obviously from the import and extend)
@@ -55,7 +55,7 @@ we want the errors here to point to our docs if we supply a docsPath though
5555
new BaseError(shortMessage, args): BaseError;
5656
```
5757

58-
Defined in: [aa-sdk/core/src/errors/base.ts:28](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/base.ts#L28)
58+
Defined in: [aa-sdk/core/src/errors/base.ts:28](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/base.ts#L28)
5959

6060
#### Parameters
6161

docs/pages/reference/aa-sdk/core/src/classes/BatchExecutionNotSupportedError.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: reference
77

88
{/* This file is auto-generated by TypeDoc. Do not edit manually. */}
99

10-
Defined in: [aa-sdk/core/src/errors/account.ts:122](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/account.ts#L122)
10+
Defined in: [aa-sdk/core/src/errors/account.ts:122](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L122)
1111

1212
Represents an error indicating that batch execution is not supported for a specific account type.
1313

@@ -23,7 +23,7 @@ Represents an error indicating that batch execution is not supported for a speci
2323
new BatchExecutionNotSupportedError(accountType): BatchExecutionNotSupportedError;
2424
```
2525

26-
Defined in: [aa-sdk/core/src/errors/account.ts:130](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/account.ts#L130)
26+
Defined in: [aa-sdk/core/src/errors/account.ts:130](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L130)
2727

2828
Constructs an error message indicating that batch execution is not supported by the specified account type.
2929

docs/pages/reference/aa-sdk/core/src/classes/ChainNotFoundError.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: reference
77

88
{/* This file is auto-generated by TypeDoc. Do not edit manually. */}
99

10-
Defined in: [aa-sdk/core/src/errors/client.ts:46](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/client.ts#L46)
10+
Defined in: [aa-sdk/core/src/errors/client.ts:46](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/client.ts#L46)
1111

1212
Error class representing a "Chain Not Found" error, typically thrown when no chain is supplied to the client.
1313

@@ -23,7 +23,7 @@ Error class representing a "Chain Not Found" error, typically thrown when no cha
2323
new ChainNotFoundError(): ChainNotFoundError;
2424
```
2525

26-
Defined in: [aa-sdk/core/src/errors/client.ts:52](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/client.ts#L52)
26+
Defined in: [aa-sdk/core/src/errors/client.ts:52](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/client.ts#L52)
2727

2828
Initializes a new instance of the error message with a default message indicating that no chain was supplied to the client.
2929

docs/pages/reference/aa-sdk/core/src/classes/DefaultFactoryNotDefinedError.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: reference
77

88
{/* This file is auto-generated by TypeDoc. Do not edit manually. */}
99

10-
Defined in: [aa-sdk/core/src/errors/account.ts:38](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/account.ts#L38)
10+
Defined in: [aa-sdk/core/src/errors/account.ts:38](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L38)
1111

1212
Represents an error that is thrown when no default factory is defined for a specific account type on a given chain and entry point version.
1313
This error suggests providing an override via the `factoryAddress` parameter when creating an account.
@@ -27,7 +27,7 @@ new DefaultFactoryNotDefinedError(
2727
version): DefaultFactoryNotDefinedError;
2828
```
2929

30-
Defined in: [aa-sdk/core/src/errors/account.ts:48](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/account.ts#L48)
30+
Defined in: [aa-sdk/core/src/errors/account.ts:48](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L48)
3131

3232
Constructs an error message indicating that no default factory was found for the given account type, chain, and entry point version.
3333

docs/pages/reference/aa-sdk/core/src/classes/EntityIdOverrideError.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: reference
77

88
{/* This file is auto-generated by TypeDoc. Do not edit manually. */}
99

10-
Defined in: [aa-sdk/core/src/errors/client.ts:96](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/client.ts#L96)
10+
Defined in: [aa-sdk/core/src/errors/client.ts:96](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/client.ts#L96)
1111

1212
Error class denoting that the provided entity id is invalid because it's overriding the native entity id.
1313

@@ -23,7 +23,7 @@ Error class denoting that the provided entity id is invalid because it's overrid
2323
new EntityIdOverrideError(): EntityIdOverrideError;
2424
```
2525

26-
Defined in: [aa-sdk/core/src/errors/client.ts:102](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/client.ts#L102)
26+
Defined in: [aa-sdk/core/src/errors/client.ts:102](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/client.ts#L102)
2727

2828
Initializes a new instance of the error message with a default message indicating that the nonce key is invalid.
2929

docs/pages/reference/aa-sdk/core/src/classes/EntryPointNotFoundError.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: reference
77

88
{/* This file is auto-generated by TypeDoc. Do not edit manually. */}
99

10-
Defined in: [aa-sdk/core/src/errors/entrypoint.ts:7](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/entrypoint.ts#L7)
10+
Defined in: [aa-sdk/core/src/errors/entrypoint.ts:7](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/entrypoint.ts#L7)
1111

1212
Represents an error thrown when an entry point is not found for a specific chain and entry point version. This error indicates that a default entry point does not exist for the given chain and version, and suggests providing an override.
1313

@@ -23,7 +23,7 @@ Represents an error thrown when an entry point is not found for a specific chain
2323
new EntryPointNotFoundError(chain, entryPointVersion): EntryPointNotFoundError;
2424
```
2525

26-
Defined in: [aa-sdk/core/src/errors/entrypoint.ts:16](https://github.com/alchemyplatform/aa-sdk/blob/64e8cbabbf2fde59a17e85374123e899334dc927/aa-sdk/core/src/errors/entrypoint.ts#L16)
26+
Defined in: [aa-sdk/core/src/errors/entrypoint.ts:16](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/entrypoint.ts#L16)
2727

2828
Constructs an error message indicating that no default entry point exists for the given chain and entry point version.
2929

0 commit comments

Comments
 (0)