Skip to content

Conversation

@YuKongA
Copy link
Member

@YuKongA YuKongA commented Jun 5, 2025

#77

@YuKongA YuKongA linked an issue Jun 5, 2025 that may be closed by this pull request
@YuKongA YuKongA changed the title WIP [1/N] Preview for components in documentation website Jun 5, 2025
@YuKongA YuKongA changed the title Preview for components in documentation website [WIP] Preview for components in documentation website Jun 5, 2025
@YuKongA YuKongA self-assigned this Jun 5, 2025
@YuKongA YuKongA changed the title [WIP] Preview for components in documentation website Preview for components in documentation website Jun 8, 2025
@YuKongA YuKongA requested a review from Copilot June 8, 2025 10:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds interactive live previews to component documentation and updates example code and the docs build workflow.

  • Inserts preview iframes into each component’s markdown page for visual demos.
  • Updates Kotlin samples: switches state holders from var to val and enhances layout code in ListPopup and FloatingToolbar.
  • Extends the GitHub Actions docs workflow to build and publish Compose demo assets.

Reviewed Changes

Copilot reviewed 103 out of 103 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/components/superarrow.md Added iframe preview container
docs/components/smalltitle.md Added iframe preview container
docs/components/slider.md Added iframe preview container
docs/components/searchbar.md Added iframe preview container
docs/components/scaffold.md Added iframe preview container
docs/components/pulltorefresh.md Added usage warning and external example link; no-live preview
docs/components/progressindicator.md Added iframe preview container
docs/components/navigationbar.md Added iframe preview container
docs/components/listpopup.md Added iframe preview, replaced var with val, added alignment parameter
docs/components/iconbutton.md Added iframe preview container
docs/components/icon.md Added iframe preview container
docs/components/floatingtoolbar.md Added iframe preview, refactored Row/Column layout snippets
docs/components/floatingactionbutton.md Added iframe preview container
docs/components/divider.md Added iframe preview container
docs/components/colorpicker.md Added iframe preview container
docs/components/checkbox.md Added iframe preview container
docs/components/card.md Added iframe preview container
docs/components/button.md Added iframe preview container
docs/components/basiccomponent.md Added iframe preview container
.github/workflows/docs.yml Extended workflow steps to build/demo and move Compose artifacts
Comments suppressed due to low confidence (1)

docs/components/listpopup.md:33

  • The code sample now references PopupPositionProvider.Align but doesn’t show its import. Consider adding the corresponding import statement to the snippet for clarity.
alignment = PopupPositionProvider.Align.Left,


`SuperArrow` is a directional indicator component in Miuix, typically used for navigation or displaying additional content. It provides a title, summary, and right arrow icon with click interaction support, commonly used in settings, menu items, or list items.

<div style="position: relative; max-width: 700px; height: 280px; border-radius: 10px; overflow: hidden; border: 1px solid #777;">
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] This inline styling is repeated across many component docs. Extract these common styles into a shared CSS class to reduce duplication and improve maintainability.

Copilot uses AI. Check for mistakes.
@YuKongA YuKongA merged commit 18d329b into main Jun 8, 2025
6 checks passed
@YuKongA YuKongA deleted the docs-demo branch June 8, 2025 10:44
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.

Need web preview for components in documentation website

2 participants