-
-
Notifications
You must be signed in to change notification settings - Fork 835
Add comprehensive FAQ questions with Chinese and English versions covering markdown, Vue, think tags, and mobile adaptation #1117
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
base: main
Are you sure you want to change the base?
Conversation
@afc163 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
Deploying ant-design-x with
|
Latest commit: |
bcfb021
|
Status: | ✅ Deploy successful! |
Preview URL: | https://00bc9515.ant-design-x.pages.dev |
Branch Preview URL: | https://copilot-fix-534-2.ant-design-x.pages.dev |
Bundle ReportChanges will decrease total bundle size by 38 bytes (-0.03%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antdx-array-pushAssets Changed:
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
size-limit report 📦
|
Co-authored-by: afc163 <[email protected]>
|
Co-authored-by: afc163 <[email protected]>
Thanks for the feedback! I've made the following updates in commit cc65158:
The FAQ now provides both current implementation approaches and information about the upcoming 2.0 features for markdown rendering and Think component support. |
docs/react/faq.zh-CN.md
Outdated
|
||
更多实现方式可以参考 [Copilot 示例](https://github.com/ant-design/x/blob/main/docs/playground/copilot.tsx) 和 [ThoughtChain 组件文档](/components/thought-chain-cn)。 | ||
|
||
> **📢 即将到来**: Ant Design X 2.0 版本将新增 Think 组件,专门用于展示 AI 思考过程,提供更便捷的思维链渲染方案。 |
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.
@copilot 需要给 PR 链接。
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.
Added PR link to the Think component announcement in both Chinese and English versions. Changes committed in ef54b03.
|
||
更多详细示例请参考 [Bubble Markdown 示例](/components/bubble-cn#components-bubble-demo-markdown)。 | ||
|
||
> **📢 即将到来**: Ant Design X 2.0 版本将内置 markdown 渲染支持,无需额外配置即可直接渲染 markdown 内容。 |
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.
@copilot 需要给 RFC 的链接。
Co-authored-by: afc163 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1117 +/- ##
=======================================
Coverage 92.45% 92.45%
=======================================
Files 69 69
Lines 1577 1577
Branches 426 427 +1
=======================================
Hits 1458 1458
Misses 119 119 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This PR adds four comprehensive FAQ questions to address common user inquiries, with complete translations in both Chinese and English:
Added FAQ Questions
1. How to use markdown rendering? (如何使用 markdown 渲染?)
Provides practical guidance on using
markdown-it
library with the Bubble component'smessageRender
prop, including a complete code example. References upcoming Ant Design X 2.0 built-in markdown rendering support.2. Is there a Vue version? (是否有 Vue 版本?)
Clarifies that Ant Design X currently only supports React and explains the project's focus on the React ecosystem, while encouraging community contribution for potential future framework support.
3. How to render
<think>
tags? (如何渲染<think>
标签?)Explains both current implementation approaches: custom message transformation (referencing the copilot.tsx implementation) and the ThoughtChain component. References the upcoming Think component in 2.0 with proper PR link.
4. How to adapt to mobile? (如何适配移动端?)
Offers concrete suggestions for mobile adaptation including responsive layouts, component sizing, and touch interaction optimizations.
Key Features
The content was carefully researched from existing component demos and codebase to ensure accuracy and consistency with the project's patterns.
Fixes #534.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.