-
Notifications
You must be signed in to change notification settings - Fork 30
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
[LiquidDoc] Formatting support for optional @param
delimiters []
#734
base: main
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@param
delimiters []
a07c1e9
to
40ad9c4
Compare
720b222
to
31d1bd9
Compare
40ad9c4
to
299b434
Compare
a62068b
to
5426ddb
Compare
299b434
to
35d7e8f
Compare
5426ddb
to
dcb46c0
Compare
35d7e8f
to
2d086a3
Compare
03f0a91
to
0387935
Compare
2d086a3
to
9acae35
Compare
e91db5d
to
374d89f
Compare
9acae35
to
3c791ea
Compare
3c791ea
to
7038766
Compare
dd32d08
to
e0d3790
Compare
@@ -520,8 +520,10 @@ export function printLiquidDocParam( | |||
parts.push(' ', `{${node.paramType.value}}`); | |||
} | |||
|
|||
if (node.paramName.value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is always true, so I'm just removing this
@@ -19,6 +19,7 @@ It should format the param description with a dash separator | |||
{% enddoc %} | |||
|
|||
It should respect the liquidDocParamDash option liquidDocParamDash: false | |||
liquidDocParamDash: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixing a test - this got removed at some point
55ca388
to
c085ac9
Compare
---- - Preserve `[]` delimiters - Strips whitespace between delimiter and param name
c085ac9
to
357feaa
Compare
What are you adding in this PR?
Part of https://github.com/Shopify/developer-tools-team/issues/525
Adds prettier support for LiquidDoc parameters with optional params, indicated by wrapping the param name in
[]
What's next? Any followup issues?
#735
Before you deploy
changeset