Skip to content

Add Mermaid support to documentation and components#284

Open
i-subham23 wants to merge 10 commits intomainfrom
docs/add-docs-visuals
Open

Add Mermaid support to documentation and components#284
i-subham23 wants to merge 10 commits intomainfrom
docs/add-docs-visuals

Conversation

@i-subham23
Copy link
Contributor

  • Introduced a new Mermaid component for rendering flowcharts in MDX.
  • Updated mdx-components.tsx to include the Mermaid component.
  • Integrated Mermaid into various documentation pages with flowcharts illustrating API contracts, connection decisions, and chat provider interactions.
  • Updated dependencies in package.json to include Mermaid version 11.13.0.
  • Configured MDX options to use the remarkMdxMermaid plugin for processing Mermaid syntax.

- Introduced a new Mermaid component for rendering flowcharts in MDX.
- Updated `mdx-components.tsx` to include the Mermaid component.
- Integrated Mermaid into various documentation pages with flowcharts illustrating API contracts, connection decisions, and chat provider interactions.
- Updated dependencies in `package.json` to include Mermaid version 11.13.0.
- Configured MDX options to use the `remarkMdxMermaid` plugin for processing Mermaid syntax.
- Updated the Mermaid component to accept an `initialZoom` prop, allowing for customizable zoom levels when rendering charts.
- Modified the MermaidContent function to utilize the `initialZoom` prop for setting the initial zoom state.
- Adjusted documentation examples to include the `initialZoom` prop for better visualization control in various MDX files.
- Adjusted Mermaid flowchart syntax in the connecting.mdx file to escape newline characters for better rendering.
- Enhanced the clarity of decision points in the flowchart by ensuring proper formatting of text labels.
- Changed flowchart syntax in providers.mdx to escape newline characters, enhancing the clarity of decision points.
- Updated the flex direction in the MermaidContent component to 'row' for better layout management.
- Added interaction tracking to the MermaidContent component with a new `hasInteracted` state to improve user experience.
- Updated zoom and pan functionality to allow for smoother interactions when using the mouse wheel.
- Modified instructional text to reflect new interaction methods, enhancing clarity for users.
- Made minor formatting adjustments in various MDX files to improve readability and maintain consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant