Proposal: ship guidance as markdown inside the package
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- markdown, react, typescript
- Lĩnh vực
- developer-experience, documentation
Hướng nghiên cứu
Kiểm tra thư mục gốc của dự án và package.json để hiểu cấu trúc hiện tại. Tìm các tệp .mdx Storybook hiện có để xem nội dung hướng dẫn. Nhiệm vụ là tạo một thư mục docs/, thêm các tệp Markdown cần thiết (index.md, foundation/colour.md, components/buttons.md, v.v.) và cập nhật package.json để bao gồm 'docs/' trong các tệp sẽ được xuất bản. Xác minh cách Storybook có thể nhập và hiển thị các tệp Markdown này. Thành công có nghĩa là tài liệu được bao gồm trong gói npm và có thể truy cập được trong Storybook.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What is being proposed?
Ship the design system’s guidance as Markdown within sci-react-ui package, making it available without leaving the editor, and consumable by both humans and agents.
Key suggestion: Add a root-level docs/ directory and add it to package.json.
Where possible, Storybook’s .mdx pages would use the same Markdown. Some content, such as swatches view, would remain in Storybook.
This would make the guidance available in Storybook, GitHub and the installed package.
Why is this needed?
The guidance does not currently ship
package.json includes only dist/, so the Markdown and MDX documentation is excluded from the installed package.
Storybook is not available within the editor
- Developers need to go to the Storybook instance or access the full repo in order to see the documentation, which can lead to guessing implementation guidelines already covered elsewhere.
- Coding agents can inspect the installed package but cannot reliably read a deployed Storybook site. This can lead them to use standard MUI patterns rather than our semantic roles.
The documentation would match the installed version
Storybook shows the deployed version. Packaged documentation would match the version used by each consumer.
What will change?
- Add a root-level
docs/directory. - Package files to [
dist/,docs/]. - Where practical, refactor
.mdxpages to use the Markdown files. - Trim
readme.mdto the introduction and installation instructions, linking to docs/ for further guidance.
There would be no changes to components, props or behaviour.
A short spike is needed to confirm how Storybook can render imported Markdown alongside MDX-specific layouts and interactive content.
Fallback: keep the .mdx pages authoritative and maintain a smaller Markdown subset, accepting some duplication.
Proposed file set
Create one Markdown file per existing guidance page, plus an index:
- dist/
- docs/
- index.md
- foundation/colour.md
- …
- components/buttons.md
- …
- readme.md
docs/index.md would provide an entry point to the full set.
Breaking change?
No.
- Ngôn ngữ chính
- TypeScript
- Star
- 8
- Fork
- 3
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DiamondLightSource/sci-react-ui
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DiamondLightSource/sci-react-ui#283 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
DiamondLightSource/sci-react-ui#324 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accepted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
DiamondLightSource/sci-react-ui#318 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
DiamondLightSource/sci-react-ui#280 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Change Proposal: Add an accessible error state to NumberInput for other components to react toĐang mởneeds-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
DiamondLightSource/sci-react-ui#278 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DiamondLightSource/sci-react-ui
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
openedx/frontend-app-authoring#3274 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🎙️ task - fix(deployer): deploy --env prep runs deploy:dev where the repo declares deploy:prepĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
area/documentation status/need-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
google-gemini/gemini-cli#29548 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sdk-typescript vector-store
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 82/100
mem0ai/mem0#7495 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày