-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
docs: optimize Graph API and data docs #6739
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7524d7a
to
4141202
Compare
Aarebecca
reviewed
Feb 27, 2025
Aarebecca
reviewed
Feb 27, 2025
|
||
```javascript | ||
// ❌ 不推荐:在数据中直接包含样式 | ||
const badPractice = { |
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.
这里是手写的文档吗,在数据中直接包含样式其实也是可以的,怎么成了 bad practice 了呢
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.
那我删了吧,感觉把样式写在数据里不太好,属于可以但不推荐的范畴
Aarebecca
reviewed
Feb 27, 2025
07693ce
to
622354c
Compare
8587a8f
to
67d9fbf
Compare
Aarebecca
approved these changes
Feb 27, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
改造前:[脚本自动生成] 所有 Graph API 都写在一个文件里,内容很多,并且只有简单说明,复杂类型用外链的方式说明。
改造后:[手写] 按功能拆分,补充使用示例并完善描述。类型在同一个文件中说明。