refactor: organize shopping extensions into nested subfolder and update redirects - #761
Conversation
| Model Context Protocol (MCP) transport binding for the Order | ||
| Capability, detailing the JSON-RPC tool interface and parameters | ||
| for fetching order states. | ||
| Extensions: |
There was a problem hiding this comment.
llmstxt Section Hierarchy: Extensions should be nested under Shopping: in llmstxt to maintain 1:1 structural parity with nav rather than defined as a top-level section alongside Shopping and Payment.
|
|
||
| Base [Context](shopping/catalog/index.md#context) defines an optional `location`: a | ||
| stable, opaque [Location](glossary.md#commerce) identifier in the Business's | ||
| Base [Context](../catalog/index.md#context) defines an optional `location`: a |
There was a problem hiding this comment.
Update Discovery Profile spec URLs: Discovery profile examples in this file (lines 712, 735, 761) and across other docs (discount.md:51, buyer-consent.md:70, loyalty.md:147, overview/index.md:980, playground.md:508, core-concepts.md:170) still advertise the old root spec URLs:
"spec": "https://ucp.dev/{{ ucp_version }}/specification/fulfillment"
These should be updated across all examples to:
"spec": "https://ucp.dev/{{ ucp_version }}/specification/shopping/extensions/fulfillment"
| #### Loyalty | ||
|
|
||
| {{ extension_schema_fields('loyalty.json#/$defs/loyalty', 'loyalty') }} | ||
| {{ extension_schema_fields('loyalty.json#/$defs/loyalty', 'shopping/extensions/loyalty') }} |
There was a problem hiding this comment.
source/schemas/common/loyalty.json is namespaced as dev.ucp.common.loyalty (a common extension across verticals, like Identity Linking), but its documentation is now located at specification/shopping/extensions/loyalty.md under Shopping -> Extensions.
We should either move its documentation to specification/common/loyalty.md (matching Identity Linking) or track updating the schema namespace to dev.ucp.shopping.loyalty.
|
|
||
| * **MUST** implement the `get_order` tool per the | ||
| [OpenRPC schema](<https://ucp.dev/{{ ucp_version }}/services/shopping/mcp.openrpc.json>) | ||
| [OpenRPC schema](site:services/shopping/mcp.openrpc.json) |
There was a problem hiding this comment.
Good fix converting this to canonical site:services/shopping/mcp.openrpc.json.
We should also convert the root-relative links in payment/guide.md:763 and overview/index.md:1518 (which currently link to /documentation/schema-authoring/...) to canonical site:documentation/schema-authoring/#... so they work across subpath deployments.
423bb60 to
9c28561
Compare
|
Asked my agent friend to review/building this branch and 1. Blocking — the new
|
9c28561 to
2e67c99
Compare
…URLs - Move loyalty specification to docs/specification/common/extensions/loyalty.md - Update navigation, redirects, and llmstxt sections in mkdocs.yml - Update discovery profile spec URLs across overview, checkout, extensions, and guides - Convert schema authoring links to canonical site: URLs - Update hooks.py and check_links.py to support directory-based documentation redirects
2e67c99 to
e140077
Compare
Description
This PR reorganizes the shopping extension specifications (
buyer-consent.md,discount.md,fulfillment.md, andloyalty.md) into a dedicated nested directory underdocs/specification/shopping/extensions/to align with the rest of the modular capability structure.It also adds backward-compatible 301 redirect mappings in
mkdocs.yml, updates all internal cross-references, and fixes direct canonical anchors.Category (Required)
Please select one or more categories that apply to this change.
ucp-schematool (resolver, linter, validator). (Requires Maintainer approval)Related Issues
Checklist
!for breaking changes).Screenshots / Logs (if applicable)