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 parsing + prettier support for @param in {% doc %} tags #646

Merged
merged 16 commits into from
Jan 16, 2025

Conversation

jamesmengo
Copy link
Contributor

@jamesmengo jamesmengo commented Dec 3, 2024

What are you adding in this PR?

Closes https://github.com/Shopify/develop-advanced-edits/issues/441
https://share.descript.com/view/sZkEWbd5kAr

Added support for parsing and formatting @param tags within Liquid doc blocks.

  • Added a configurable option to prettier liquidDocParamDash to format all descriptions with - (or not)

What's next? Any followup issues?

  • I'm moving on to completions while Josh is going to add parsing + prettier support for the @example tag
  • I want to add support for optional params, default values, etc afterwards

What did you learn?

Creating ohm syntax rules is an art form

Testing

Cursor.-.Extension.Development.Host.swatch.liquid.horizon.mp4

Before you deploy

  • I included a minor bump changeset
  • My feature is backward compatible

Copy link
Contributor Author

jamesmengo commented Dec 3, 2024

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

@jamesmengo jamesmengo mentioned this pull request Dec 3, 2024
8 tasks
@jamesmengo jamesmengo force-pushed the jm/implement_fallbackNode branch from 4d4c72d to 92a1d96 Compare December 4, 2024 17:28
@jamesmengo jamesmengo force-pushed the jm/doc_param branch 2 times, most recently from 64f7dd8 to 944ecb4 Compare December 4, 2024 17:37
@jamesmengo jamesmengo force-pushed the jm/implement_fallbackNode branch from 92a1d96 to 10ded69 Compare December 4, 2024 19:36
@jamesmengo jamesmengo changed the base branch from jm/doc_param to jm/doc_tag December 4, 2024 19:36
@jamesmengo jamesmengo changed the title Implement fallbackNode for LiquidDoc Add parsing support for @param tags in LiquidDoc Dec 4, 2024
Base automatically changed from jm/doc_tag to main December 4, 2024 22:10
@jamesmengo jamesmengo force-pushed the jm/implement_fallbackNode branch from 10ded69 to 79f4c94 Compare December 5, 2024 00:56
@jamesmengo jamesmengo changed the title Add parsing support for @param tags in LiquidDoc Add basic parsing support for @param tags in LiquidDoc Dec 5, 2024
@jamesmengo jamesmengo force-pushed the jm/implement_fallbackNode branch 2 times, most recently from 68227c4 to e7ed99d Compare December 11, 2024 00:42
@jamesmengo jamesmengo changed the title Add basic parsing support for @param tags in LiquidDoc Add basic parsing + prettier support for LiquidDoc param tag Dec 11, 2024
@jamesmengo jamesmengo changed the title Add basic parsing + prettier support for LiquidDoc param tag Add parsing + prettier support for @param in {% doc %} tags Dec 11, 2024
@jamesmengo jamesmengo force-pushed the jm/implement_fallbackNode branch from 38b6f21 to 4d6c5e4 Compare December 19, 2024 23:20
@jamesmengo jamesmengo marked this pull request as ready for review January 7, 2025 17:14
@jamesmengo jamesmengo force-pushed the jm/implement_fallbackNode branch from 4d6c5e4 to 330f04b Compare January 7, 2025 22:42
@jamesmengo jamesmengo force-pushed the jm/implement_fallbackNode branch 2 times, most recently from ba370d4 to 3c9cefa Compare January 14, 2025 23:07
@jamesmengo jamesmengo requested a review from charlespwd January 14, 2025 23:22
@charlespwd
Copy link
Contributor

image

image

image

Copy link
Contributor Author

jamesmengo commented Jan 16, 2025

Merge activity

  • Jan 16, 5:17 PM EST: A user started a stack merge that includes this pull request via Graphite.
  • Jan 16, 5:18 PM EST: Graphite rebased this pull request as part of a merge.
  • Jan 16, 5:19 PM EST: A user merged this pull request with Graphite.

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