theme-tools icon indicating copy to clipboard operation
theme-tools copied to clipboard

Added doc tag support logic inside snippet tag

Open shoplando opened this issue 4 months ago • 1 comments

What are you adding in this PR?

Solves #826 Updated theme check to support doc tag inside of snippet tag. This change allows the doc tag to be used within inline snippets, in addition to the previously supported snippet and block contexts.

This PR also makes the theme check more rigorous by ensuring the doc tag is either:

  • at the top level of a snippet/block file, OR
  • a direct child of the snippet tag

The error message has been updated to reflect this new support, and tests have been added to verify that doc tags inside inline snippets don't trigger errors.

What's next? Any followup issues?

Update the theme check docs

Before you deploy

  • [x] This PR includes a new checks or changes the configuration of a check
  • [x] I included a minor bump changeset
  • [ ] I've made a PR to update the shopify.dev theme check docs if applicable.

shoplando avatar Oct 09 '25 15:10 shoplando

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

shoplando avatar Oct 09 '25 15:10 shoplando