feat: add Learn documentation feature with wiki-style pages #912
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.

This pull request introduces a new documentation layout system and supporting components for the "Learn" section, adds a reusable Vega visualization embed component, and enhances MDX support for code blocks and documentation structure. The changes focus on improving the developer and user experience for documentation and tutorials, including new sidebar navigation, code block rendering, and Vega-Lite chart embedding.
Documentation Layout and Navigation:
DocLayoutcomponent with a responsive sidebar (DocSidebar) for documentation pages, including styled layouts and navigation based on categories and items defined in constants (DocLayout.tsx,docSidebar.tsx,docSidebar.styles.ts,constants.ts). [1] [2] [3] [4]Code Block and MDX Enhancements:
CodeBlockcomponent with syntax highlighting, language tags, and XSS protection, and integrated it into MDX rendering for improved code block support in documentation (codeBlock.tsx,codeBlock.styles.ts,index.ts,mdx-components.tsx). [1] [2] [3] [4] [5] [6]remark-gfmfor GitHub-flavored markdown support. [1] [2]remark-gfmto version 4 in dependencies.Vega Visualization Embedding:
VegaEmbedcomponent for embedding Vega-Lite charts, with error handling and optional captions, and exposed it for MDX usage (vegaEmbed.tsx,vegaEmbed.styles.ts,index.ts,mdx-components.tsx). [1] [2] [3] [4] [5]vega,vega-lite, andvega-embedas dependencies for chart rendering.General Layout Improvements:
These changes collectively provide a more robust, visually consistent, and interactive documentation experience for users and contributors.
Description
Brief description of the changes made in this PR.
Related Issue
If this addresses an existing GitHub issue, link it here (e.g., "Closes #123"). If no existing issue exists, consider creating one first to discuss the changes.