Skip to content
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

Add docs wc #1057

Merged
merged 4 commits into from
Jul 14, 2023
Merged

Add docs wc #1057

merged 4 commits into from
Jul 14, 2023

Conversation

Fionoble
Copy link
Contributor

@Fionoble Fionoble commented Jul 5, 2023

Background

This PR primarily uses the .dev doc generator + our own custom bash script to scaffold the docs.

What's in this PR

  • *.doc.ts files for every component in the Admin surface of UI Extensions
  • Adds missing examples to admin components
  • Adds *.doc.ts for APIs for admin ui extensions
  • Adds targets (f.k.a. extension-points) for both block and action extensions
  • Adds static page json files for the dev-docs for admin extensions

Checklist

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

@Fionoble Fionoble force-pushed the add-docs-wc branch 19 times, most recently from 63df11f to da0d5f1 Compare July 12, 2023 19:06
@Fionoble Fionoble force-pushed the add-docs-wc branch 2 times, most recently from 288c4e2 to 3dcd15b Compare July 12, 2023 20:23
@Fionoble Fionoble marked this pull request as ready for review July 12, 2023 20:29
@github-actions

This comment has been minimized.

Copy link
Contributor

@MitchLillie MitchLillie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot, thanks Fio! A couple comments and questions

@Fionoble Fionoble force-pushed the add-docs-wc branch 2 times, most recently from 55dbf59 to 6875593 Compare July 13, 2023 00:31
Copy link

@tiffanytse tiffanytse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't gone through all the content but mostly just the home page and left a few suggestions and rewrites;

Things to avoid: using words like "We".

Things to do before shipping:

  • Grep for the word shopify; and make sure it's capitalized when in body content.
  • Look for instances where it makes sense to markup content with inline code elements for easier reading.

anchorLink: 'customProtocols',
accordionContent: [
{
title: 'shopify:admin',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johndcollett is it possible to wrap these in a <code> element so they don't get capitalized as titles since they're reference to actual code strings?

Other option would be to think about the titles more like titles;

Admin protocol, App protocol, Extension protocol, and Relative URLs

and in the body use a code element in the description so it's more obvious what the protocol is.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would take a code change to be able to do something like that. Right now there are just expecting strings and capitalize the first letter. We can remove that functionality but it might lead to more titles with lowercase letter happening.

sectionCard: [
{
name: 'Getting Started',
subtitle: 'Get started building your first Admin Extension.',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The subtitle copy is meant to be more of a description of the type of content you're linking to

Screenshot 2023-07-13 at 12 14 25 PM

See Hydrogen for a great example of how to structure these;

https://shopify.dev/docs/api/hydrogen-react

Screenshot 2023-07-13 at 12 17 44 PM Screenshot 2023-07-13 at 12 17 40 PM

Copy link

@lizkhoo-shop lizkhoo-shop Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need a card to link to the Figma UI Kit, like what Checkout did
Screenshot 2023-07-06 at 2 17 29 PM (1)
https://shopify.dev/docs/api/checkout-ui-extensions#ui-components

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated these. @lizkhoo-shop do we have a public link for the figma ready?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still might be a bit wordy. Any thoughts?
Screenshot 2023-07-13 at 6 44 09 PM

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No link for the Figma kit yet. We were planning to publish that on July 25, but I think it's okay if there's nothing here for now. You could put '(coming soon)' next to the title.

A few copy notes:

  1. We don't use '.' period punctuation at the end of the big titles
  2. "Admin Extension" should be lower case "admin extension"
  3. Direct API access card - 'SHopify' should be 'Shopify'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link

@tiffanytse tiffanytse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more spelling mistakes.

@Fionoble Fionoble force-pushed the add-docs-wc branch 4 times, most recently from 4f71231 to 216de8c Compare July 14, 2023 00:21
Co-authored-by: Tiffany Tse <tiffanytse@users.noreply.github.com>
Copy link

@lizkhoo-shop lizkhoo-shop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Copy link
Member

@vividviolet vividviolet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@Fionoble Fionoble merged commit 41de9bd into unstable Jul 14, 2023
5 checks passed
@Fionoble Fionoble deleted the add-docs-wc branch December 8, 2023 14:13
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.

None yet

6 participants