docs: reference orphaned A2DP and Feature Context figures#537
Merged
TangMeng12 merged 1 commit intoMay 9, 2026
Merged
Conversation
Two figures previously shipped with the API reference were not referenced by any document: - figures/a2dp.png (under framework/bluetooth/) — A2DP connection state machine diagram. - figures/ft_context.svg (under framework/feature/) — Relationship between the Feature framework interface (ft_value_t / ft_context_ref) and the frontend runtime (JSValue / JSContext). Instead of deleting them, both figures are now properly referenced: - bt_a2dp.md gains a new 'Connection State Machine' section that renders the A2DP state machine diagram with a description of each state. - feature_framework_context.md gains a new 'Feature Context and Frontend Runtime' section that uses ft_context.svg to explain the value/context mapping between the Feature framework and frontend runtimes. Chinese and English versions are kept in sync.
yanxingyu17
approved these changes
May 9, 2026
TangMeng12
approved these changes
May 9, 2026
This file contains hidden or 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
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.
Summary
Two figures previously shipped with the API reference were not referenced by any document. Instead of deleting them, this PR adds proper references so each figure contributes to the documentation.
Changes
Figures that were orphaned
docs/zh-cn/api/framework/bluetooth/figures/a2dp.png— A2DP connection state machine diagram.docs/zh-cn/api/framework/feature/figures/ft_context.svg— Relationship between the Feature framework interface (ft_value_t/ft_context_ref) and the frontend runtime (JSValue/JSContext).New references added
bt_a2dp.md: Added a new Connection State Machine section between the implementation notes and the synchronous interfaces. The section renders the A2DP state machine diagram and explains each state (Idle,Opening,Opened,Started,Closing).feature_framework_context.md: Added a new Feature Context and Frontend Runtime section that usesft_context.svgto explain howft_value_t/ft_context_refmap ontoJSValue/JSContextin the QuickJS implementation, and how switching frontends keeps the Feature implementation code stable.Both Chinese and English versions are kept in sync.
Stats
Testing
Documentation-only change. Verified:
docs/zh-cn/api/ordocs/en/api/.figures/a2dp.png,figures/ft_context.svg) resolve correctly from the referring.mdfiles.