-
Notifications
You must be signed in to change notification settings - Fork 18
DX-2231: Add JSON schema for validating docs.yml #1381
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
Open
dslovinsky
wants to merge
4
commits into
main
Choose a base branch
from
ds/DX-2231-docs-yml-schema
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
1201367
DX-2231: Add JSON schema for validating docs.yml
dslovinsky 33b1999
DX-2231: Remove dead docs.yml fields instead of typing them
dslovinsky 8b711ec
DX-2231: Remove docs provider reference from schema description
dslovinsky 980dfd2
DX-2231: Remove remaining prior-provider references from code comments
dslovinsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,179 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "title": "Alchemy docs.yml", | ||
| "description": "Navigation configuration for the Alchemy docs site. Allows only the options supported by the content indexer (src/content-indexer/types/docsYaml.ts), including Alchemy-specific extensions (skip-slug, flattened).", | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": ["navigation"], | ||
| "properties": { | ||
| "tabs": { | ||
| "description": "Top-level tabs shown in the docs header. Keys are tab identifiers referenced by navigation[].tab.", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "$ref": "#/definitions/tabConfig" | ||
| } | ||
| }, | ||
| "navigation": { | ||
| "description": "Sidebar navigation layout for each tab.", | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": ["tab"], | ||
| "properties": { | ||
| "tab": { | ||
| "description": "Tab identifier; must match a key under tabs.", | ||
| "type": "string" | ||
| }, | ||
| "layout": { | ||
| "description": "Navigation items for this tab. Omit for tabs whose content is generated elsewhere (e.g. the changelog tab).", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/navigationItem" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "tabConfig": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": ["display-name"], | ||
| "properties": { | ||
| "display-name": { | ||
| "description": "Human-readable tab label shown in the header.", | ||
| "type": "string" | ||
| }, | ||
| "slug": { | ||
| "description": "URL segment for the tab. Defaults to the kebab-cased tab key.", | ||
| "type": "string" | ||
| }, | ||
| "skip-slug": { | ||
| "description": "Alchemy extension: omit this tab's slug from descendant URL paths.", | ||
| "type": "boolean" | ||
| } | ||
| } | ||
| }, | ||
| "navigationItem": { | ||
| "oneOf": [ | ||
| { "$ref": "#/definitions/pageItem" }, | ||
| { "$ref": "#/definitions/sectionItem" }, | ||
| { "$ref": "#/definitions/linkItem" }, | ||
| { "$ref": "#/definitions/apiItem" } | ||
| ] | ||
| }, | ||
| "mdxPath": { | ||
| "type": "string", | ||
| "pattern": "\\.mdx$" | ||
| }, | ||
| "pageItem": { | ||
| "description": "A single docs page backed by an MDX file.", | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": ["page", "path"], | ||
| "properties": { | ||
| "page": { | ||
| "description": "Page title shown in the sidebar.", | ||
| "type": "string" | ||
| }, | ||
| "path": { | ||
| "description": "Path to the page's .mdx file, relative to the content directory.", | ||
| "$ref": "#/definitions/mdxPath" | ||
| }, | ||
| "slug": { | ||
| "description": "URL segment for the page. Defaults to the kebab-cased page title. May contain slashes to override the full path.", | ||
| "type": "string" | ||
| }, | ||
| "hidden": { | ||
| "description": "Hide this page from the sidebar and search indexing.", | ||
| "type": "boolean" | ||
| } | ||
| } | ||
| }, | ||
| "sectionItem": { | ||
| "description": "A collapsible group of navigation items, optionally with an overview page.", | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": ["section", "contents"], | ||
| "properties": { | ||
| "section": { | ||
| "description": "Section title shown in the sidebar.", | ||
| "type": "string" | ||
| }, | ||
| "contents": { | ||
| "description": "Child navigation items.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/navigationItem" | ||
| } | ||
| }, | ||
| "path": { | ||
| "description": "Optional overview page for the section: path to an .mdx file, relative to the content directory.", | ||
| "$ref": "#/definitions/mdxPath" | ||
| }, | ||
| "slug": { | ||
| "description": "URL segment for the section. Defaults to the kebab-cased section title.", | ||
| "type": "string" | ||
| }, | ||
| "skip-slug": { | ||
| "description": "Alchemy extension: omit this section's slug from descendant URL paths.", | ||
| "type": "boolean" | ||
| }, | ||
| "hidden": { | ||
| "description": "Hide this section and its contents from the sidebar and search indexing.", | ||
| "type": "boolean" | ||
| } | ||
| } | ||
| }, | ||
| "linkItem": { | ||
| "description": "A sidebar entry linking to an internal path or external URL.", | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": ["link", "href"], | ||
| "properties": { | ||
| "link": { | ||
| "description": "Link text shown in the sidebar.", | ||
| "type": "string" | ||
| }, | ||
| "href": { | ||
| "description": "Destination: an internal path (e.g. /docs/...) or an external URL.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "apiItem": { | ||
| "description": "An auto-generated API reference section backed by an uploaded API spec.", | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": ["api", "api-name"], | ||
| "properties": { | ||
| "api": { | ||
| "description": "Title for the API reference section.", | ||
| "type": "string" | ||
| }, | ||
| "api-name": { | ||
| "description": "Identifier of the API spec to render (must match an uploaded spec name).", | ||
| "type": "string" | ||
| }, | ||
| "slug": { | ||
| "description": "URL segment for the API section. Defaults to the kebab-cased title.", | ||
| "type": "string" | ||
| }, | ||
| "skip-slug": { | ||
| "description": "Alchemy extension: omit this section's slug from endpoint URL paths.", | ||
| "type": "boolean" | ||
| }, | ||
| "hidden": { | ||
| "description": "Hide the endpoints from the sidebar and search indexing.", | ||
| "type": "boolean" | ||
| }, | ||
| "flattened": { | ||
| "description": "Alchemy extension: render endpoints as a flat list instead of grouped by spec hierarchy.", | ||
| "type": "boolean" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,4 @@ | ||
| # yaml-language-server: $schema=https://schema.buildwithfern.dev/docs-yml.json | ||
|
|
||
| instances: | ||
| - url: https://alchemy.com/docs | ||
| # yaml-language-server: $schema=./docs-yml.schema.json | ||
|
|
||
| tabs: | ||
| get-started: | ||
|
|
@@ -24,7 +21,6 @@ tabs: | |
| slug: rollups | ||
| changelog: | ||
| display-name: Changelog | ||
| changelog: ./changelog | ||
|
Collaborator
Author
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. unused |
||
| slug: changelog | ||
|
|
||
| navigation: | ||
|
|
@@ -879,7 +875,6 @@ navigation: | |
| - page: Using API | ||
| path: wallets/pages/smart-wallets/quickstart/api.mdx | ||
| - section: Send transactions | ||
| collapsed: true | ||
|
Collaborator
Author
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. collapsed does nothing currrently |
||
| contents: | ||
| - page: Single transactions | ||
| path: wallets/pages/transactions/send-transactions/index.mdx | ||
|
|
@@ -889,19 +884,16 @@ navigation: | |
| path: wallets/pages/transactions/send-parallel-transactions/index.mdx | ||
| - section: Debug transactions | ||
| path: wallets/pages/transactions/debug-transactions/index.mdx | ||
| collapsed: true | ||
| contents: | ||
| - page: Debug with Tenderly | ||
| path: wallets/pages/transactions/debug-transactions/debug-with-tenderly.mdx | ||
| - section: EIP-7702 | ||
| path: wallets/pages/transactions/using-eip-7702/index.mdx | ||
| collapsed: true | ||
| contents: | ||
| - page: Undelegate 7702 account | ||
| path: wallets/pages/transactions/undelegate-account/index.mdx | ||
| - section: Sponsor gas | ||
| path: wallets/pages/transactions/sponsor-gas/overview.mdx | ||
| collapsed: true | ||
| contents: | ||
| - page: Full sponsorship | ||
| path: wallets/pages/transactions/sponsor-gas/index.mdx | ||
|
|
@@ -912,14 +904,12 @@ navigation: | |
| - page: Solana sponsorship | ||
| path: wallets/pages/transactions/sponsor-gas/solana/index.mdx | ||
| - section: Swap tokens | ||
| collapsed: true | ||
| contents: | ||
| - page: Same-chain swaps | ||
| path: wallets/pages/transactions/swap-tokens/index.mdx | ||
| - page: Cross-chain swaps | ||
| path: wallets/pages/transactions/cross-chain-swap-tokens/index.mdx | ||
| - section: Grant session keys | ||
| collapsed: true | ||
| contents: | ||
| - page: Overview | ||
| path: wallets/pages/smart-wallets/session-keys/index.mdx | ||
|
|
@@ -932,7 +922,6 @@ navigation: | |
| - page: Retry transactions | ||
| path: wallets/pages/transactions/retry-transactions/index.mdx | ||
| - section: Sign | ||
| collapsed: true | ||
| contents: | ||
| - page: Sign messages | ||
| path: wallets/pages/transactions/signing/sign-messages/index.mdx | ||
|
|
@@ -947,7 +936,6 @@ navigation: | |
| path: wallets/pages/authentication/overview.mdx | ||
| - section: Privy | ||
| path: wallets/pages/third-party/signers/privy.mdx | ||
| collapsed: true | ||
| contents: | ||
| - page: Signer migration overview | ||
| path: wallets/wallet-integrations/privy/signer-migration-overview.mdx | ||
|
|
@@ -966,10 +954,8 @@ navigation: | |
| - page: Other signers | ||
| path: wallets/pages/third-party/signers/custom-integration.mdx | ||
| - section: Account Kit (v4) | ||
| collapsed: true | ||
| contents: | ||
| - section: Login methods | ||
| collapsed: true | ||
| contents: | ||
| - page: Email OTP | ||
| path: wallets/pages/authentication/login-methods/email-otp.mdx | ||
|
|
@@ -992,7 +978,6 @@ navigation: | |
| - page: Adding and removing login methods | ||
| path: wallets/pages/react/login-methods/adding-and-removing-login-methods.mdx | ||
| - section: UI components | ||
| collapsed: true | ||
| contents: | ||
| - page: Using UI components | ||
| path: wallets/pages/react/ui-components.mdx | ||
|
|
@@ -1001,21 +986,18 @@ navigation: | |
| - page: Tailwind setup | ||
| path: wallets/pages/react/customization/tailwind-setup.mdx | ||
| - section: Whitelabel | ||
| collapsed: true | ||
| contents: | ||
| - page: React hooks | ||
| path: wallets/pages/react/react-hooks.mdx | ||
| - page: Other JS initialization | ||
| path: wallets/pages/signer/quickstart.mdx | ||
| - section: Connectors | ||
| collapsed: true | ||
| contents: | ||
| - page: Connect external wallets | ||
| path: wallets/pages/react/login-methods/eoa-login.mdx | ||
| - page: Customize | ||
| path: wallets/pages/react/connectors/customization.mdx | ||
| - section: MFA | ||
| collapsed: true | ||
| contents: | ||
| - page: Set up MFA | ||
| path: wallets/pages/react/mfa/setup-mfa.mdx | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused field