-
Notifications
You must be signed in to change notification settings - Fork 21
feat(sdk-docs): add documentation configuration for SDK monorepo #522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
**/* | ||
!_category_.json | ||
!_category_.yml | ||
!provider-adapters/ | ||
!provider-adapters/_category_.json | ||
!core-utilities/ | ||
!core-utilities/_category_.json | ||
!protocol-components/ | ||
!protocol-components/_category_.json | ||
!.gitignore |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"label": "Core Utilities", | ||
"position": 3, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Core utility modules for the Cow Protocol SDK" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"label": "Protocol Components", | ||
"position": 4, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Protocol-specific components and modules" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"label": "Provider Adapters", | ||
"position": 2, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Provider adapters for different Ethereum libraries" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,9 +77,11 @@ const config: Config = { | |
{ | ||
id: 'cow-sdk', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/src/index.ts'], | ||
tsconfig: './external/cow-sdk/tsconfig.json', | ||
|
||
entryPoints: [ | ||
'./external/cow-sdk/packages/sdk/src/typedoc-entry.ts', | ||
], | ||
tsconfig: './external/cow-sdk/packages/sdk/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/cow-sdk', | ||
sidebar: { | ||
|
@@ -89,20 +91,260 @@ const config: Config = { | |
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-trading', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/trading/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/trading/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/protocol-components/sdk-trading', | ||
sidebar: { | ||
categoryLabel: 'sdk-trading', | ||
collapsed: true, | ||
position: 1, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-order-book', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/order-book/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/order-book/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/protocol-components/sdk-order-book', | ||
sidebar: { | ||
categoryLabel: 'sdk-order-book', | ||
collapsed: true, | ||
position: 2, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'contracts-ts', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/contracts-ts/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/contracts-ts/tsconfig.json', | ||
excludeNotDocumented: true, | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/core-utilities/sdk-contracts-ts', | ||
sidebar: { | ||
categoryLabel: 'sdk-contracts-ts', | ||
collapsed: true, | ||
position: 3, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-order-signing', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/order-signing/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/order-signing/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/protocol-components/sdk-order-signing', | ||
sidebar: { | ||
categoryLabel: 'sdk-order-signing', | ||
collapsed: true, | ||
position: 3, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-cow-shed', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/cow-shed/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/cow-shed/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/protocol-components/sdk-cow-shed', | ||
sidebar: { | ||
categoryLabel: 'sdk-cow-shed', | ||
collapsed: true, | ||
position: 4, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-composable', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/composable/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/composable/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/protocol-components/sdk-composable', | ||
sidebar: { | ||
categoryLabel: 'sdk-composable', | ||
collapsed: true, | ||
position: 5, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-bridging', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/bridging/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/bridging/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/protocol-components/sdk-bridging', | ||
sidebar: { | ||
categoryLabel: 'sdk-bridging', | ||
collapsed: true, | ||
position: 6, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-subgraph', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/subgraph/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/subgraph/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/protocol-components/sdk-subgraph', | ||
sidebar: { | ||
categoryLabel: 'sdk-subgraph', | ||
collapsed: true, | ||
position: 7, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-weiroll', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/weiroll/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/weiroll/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/protocol-components/sdk-weiroll', | ||
sidebar: { | ||
categoryLabel: 'sdk-weiroll', | ||
collapsed: true, | ||
position: 8, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-common', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/common/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/common/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/core-utilities/sdk-common', | ||
sidebar: { | ||
categoryLabel: 'sdk-common', | ||
collapsed: true, | ||
position: 1, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-config', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/config/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/config/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/core-utilities/sdk-config', | ||
sidebar: { | ||
categoryLabel: 'sdk-config', | ||
collapsed: true, | ||
position: 2, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-ethers-v5-adapter', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/providers/ether-v5-adapter/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/providers/ether-v5-adapter/tsconfig.json', | ||
Comment on lines
+287
to
+288
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix naming inconsistency for ethers adapters The source paths use Either rename the source directories to include the 's' or update the output paths and labels to match the source naming: - out: 'cow-protocol/reference/sdks/provider-adapters/sdk-ethers-v5-adapter',
+ out: 'cow-protocol/reference/sdks/provider-adapters/sdk-ether-v5-adapter',
sidebar: {
- categoryLabel: 'sdk-ethers-v5-adapter',
+ categoryLabel: 'sdk-ether-v5-adapter', Also applies to: 291-291, 293-293, 304-305, 308-308, 310-310 🤖 Prompt for AI Agents
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jeffersonBastos shouldn't it be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alfetopito Yes, it should all be "ethers" actually. |
||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/provider-adapters/sdk-ethers-v5-adapter', | ||
sidebar: { | ||
categoryLabel: 'sdk-ethers-v5-adapter', | ||
collapsed: true, | ||
position: 1, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-ethers-v6-adapter', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/providers/ether-v6-adapter/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/providers/ether-v6-adapter/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/provider-adapters/sdk-ethers-v6-adapter', | ||
sidebar: { | ||
categoryLabel: 'sdk-ethers-v6-adapter', | ||
collapsed: true, | ||
position: 2, | ||
}, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'sdk-viem-adapter', | ||
// TypeDoc options | ||
entryPoints: ['./external/cow-sdk/packages/providers/viem-adapter/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/providers/viem-adapter/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/provider-adapters/sdk-viem-adapter', | ||
sidebar: { | ||
categoryLabel: 'sdk-viem-adapter', | ||
collapsed: true, | ||
position: 3, | ||
}, | ||
excludeExternals: true, | ||
}, | ||
], | ||
[ | ||
'docusaurus-plugin-typedoc', | ||
{ | ||
id: 'app-data', | ||
// TypeDoc options | ||
entryPoints: ['./external/app-data/src/index.ts'], | ||
tsconfig: './external/app-data/tsconfig.json', | ||
entryPoints: ['./external/cow-sdk/packages/app-data/src/index.ts'], | ||
tsconfig: './external/cow-sdk/packages/app-data/tsconfig.json', | ||
|
||
// Plugin options | ||
out: 'cow-protocol/reference/sdks/app-data', | ||
sidebar: { | ||
categoryLabel: 'app-data', | ||
collapsed: true, | ||
position: 2, | ||
position: 5, | ||
}, | ||
}, | ||
], | ||
|
Uh oh!
There was an error while loading. Please reload this page.