Skip to content

2025-10 gen-docs v1#3945

Draft
johndcollett wants to merge 10 commits into2025-10from
2025-10-gen-docs-v1
Draft

2025-10 gen-docs v1#3945
johndcollett wants to merge 10 commits into2025-10from
2025-10-gen-docs-v1

Conversation

@johndcollett
Copy link

Background

Closes https://github.com/Shopify/shopify-dev/issues/68438

TL;DR: We are ready to begin the migration of POS docs to the latest major gen docs release.

Solution

  • Doc generation: Added /** @publicDocs */ immediately before every top level interface for POS ONLY.

  • Why this approach: The existing doc pipeline uses @publicDocs to decide what to include; adding the tag is the minimal, consistent fix and matches how other public API surfaces are documented.

yarn docs:point-of-sale 2025-10 to generate the generated docs data v2 json file in the shopify-dev repo

Checklist

  • I have 🎩'd these changes
  • I have updated relevant documentation

 to component Props

- Add v2ToArray in build-docs.mjs so transformJson works with generated_docs_data_v2.json (object format)
- Add @publicdocs to admin component Props types in .d.ts for public docs generation

Made-with: Cursor
… API types

- build-docs.mjs: write extensions output as v2 format (arrayToV2) so types like ActionExtensionApi appear as top-level keys in generated_docs_data_v2.json
- Add @publicdocs to admin API types: ActionExtensionApi, StandardApi, ShouldRenderApi, BlockExtensionApi, PrintActionExtensionApi, OrderRoutingRuleApi, PurchaseOptionsCardConfigurationApi, CustomerSegmentTemplateApi, IntentInvokeApi, ProductDetailsConfigurationApi, ProductVariantDetailsConfigurationApi, PickerApi, ResourcePickerApi, ResourcePickerOptions

Made-with: Cursor
@laurelthorburn laurelthorburn force-pushed the 2025-10-gen-docs-v1 branch 3 times, most recently from 6b75c9e to b9721a0 Compare March 6, 2026 22:11
Copy generate-docs output to generated_docs_data_v2.json and run version replacement on the v2 file so downstream receives the v2 filename.
- Add @types/react resolution to deduplicate conflicting type declarations
  from @shopify/generate-docs dependency
- Fix build-doc-shared.mjs to use absolute paths for generated file operations
- Update build-docs.mjs to handle v2 JSON format (object or array)
- Add @publicdocs annotations to api/docs.ts interfaces for doc generation
- Fix doc reference types in authenticated-account.doc.ts and extension.doc.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants