Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Proposal: ship guidance as markdown inside the package

オープン 初心者向け
#325 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

needs-triage

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 .mdx pages to use the Markdown files.
  • Trim readme.md to 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DiamondLightSource/sci-react-ui のほかの issue

DiamondLightSource/sci-react-ui の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。