Proposal: ship guidance as markdown inside the package
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- markdown, react, typescript
調査の方向性
プロジェクトのルートディレクトリと package.json を調べて、現在の構造を理解します。既存の Storybook .mdx ファイルを探し、ガイダンスの内容を確認します。タスクは、docs/ ディレクトリを作成し、必要な Markdown ファイル(index.md、foundation/colour.md、components/buttons.md など)を追加し、package.json を更新して公開するファイルに 'docs/' を含めることです。Storybook がこれらの Markdown ファイルをどのようにインポートしてレンダリングできるかを確認します。成功とは、ドキュメントが npm パッケージに含まれ、Storybook でアクセス可能になることを意味します。
索引モデルが issue の本文から書いたものです。
説明
What is being proposed?
Ship the design system’s guidance as Markdown within sci-react-ui, making it available without leaving the editor.
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. Interactive content, such as live swatches, 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 may guess at decisions already covered by the guidance.
- 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.
- 主要言語
- TypeScript
- スター
- 8
- フォーク
- 3
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 11
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DiamondLightSource/sci-react-ui のほかの issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
needs-triage
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
accepted
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
needs-triage
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
-
needs-triage
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
DiamondLightSource/sci-react-ui#278 · コメント 1 件 ·
DiamondLightSource/sci-react-ui の issue をすべて見る
似ている issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100