-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
[doc] Add switch task demo #10247
[doc] Add switch task demo #10247
Conversation
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.
And the screenshots corresponding to the documentation are recommended to be in light mode. Thanks a lot : )
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.
The provided images can be marked with corresponding tags at key information. In this way, it can be more beneficial to users.
@@ -1,10 +1,12 @@ | |||
# Switch | |||
|
|||
Switch是一个条件判断节点,依据[全局变量](../parameter/global.md)的值和用户所编写的表达式判断结果执行对应分支。 |
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.
It is recommended to use the original expression, which is more complete.
@@ -14,26 +15,33 @@ Drag from the toolbar <img src="/img/switch.png" width="20"/> task node to canv | |||
- Descriptive information: Describe the function of the node. |
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.
Remove extra indent spaces
@QuakeWang Thanks.I had fixed those problems. |
I had fixed those problems. |
Co-authored-by: QuakeWang <45645138+QuakeWang@users.noreply.github.com>
I find out we still have a discussion in #10247 (comment) and I do not have much experience for switch tasks. Maybe you guys should discuss on it |
What do you think about it?Do you have more suggestions? @QuakeWang |
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 PR sets the corresponding switch branch using global variables. In this way, users can intuitively understand how to use this task.
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.
Thanks @huangchenguang123 and @QuakeWang for the review
I solve some upstream change in branch dev |
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.
img path usage
docs/docs/en/guide/task/switch.md
Outdated
|
||
## Related Task | ||
![switch_01](/img/tasks/demo/switch_01.png) |
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.
You should use related path instead of absolute path after #10325 merged
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.
I had change the img path.
PTAL @zhongjiajie |
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.
Looking great, thanks
Co-authored-by: QuakeWang <45645138+QuakeWang@users.noreply.github.com> (cherry picked from commit 7e39e0d)
Co-authored-by: QuakeWang <45645138+QuakeWang@users.noreply.github.com>
close #8029