Shopify / ui-extensions

MIT License
265 stars 37 forks source link

Change required sections to markdown in POS API docs #2097

Closed NathanJolly closed 3 months ago

NathanJolly commented 3 months ago

Background

Resolves https://github.com/Shopify/pos-next-react-native/issues/38101

The required sections weren't doing what we expected. They were only printing the first string, which makes sense when you think of it logically as code. The first string is truthy, so the rest are ignored.

Solution

Instead, create a subheader in the description that enumerates the supported targets, with links.

image

🎩

https://shopify-dev.ui-extensions-uga5.nathan-oliveira.us.spin.dev/docs/api/pos-ui-extensions/unstable/apis/cart-api

Checklist