Proposal: ship guidance as markdown inside the package
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 75/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- markdown, react, typescript
- Ambito
- developer-experience, documentation
Direzione di ricerca
Esamina la directory root del progetto e il package.json per comprendere la struttura attuale. Cerca i file .mdx di Storybook esistenti per vedere il contenuto di guida. Il compito consiste nel creare una directory docs/, aggiungere i file Markdown necessari (index.md, foundation/colour.md, components/buttons.md, ecc.) e aggiornare il package.json per includere 'docs/' nei file da pubblicare. Verifica come Storybook può importare e renderizzare questi file Markdown. Il successo significa che la documentazione è inclusa nel pacchetto npm e accessibile in Storybook.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 8
- Fork
- 3
- Merge medio
- 2g 6h
- PR unite (30g)
- 11
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DiamondLightSource/sci-react-ui
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
needs-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
-
accepted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
-
needs-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
Change Proposal: Add an accessible error state to NumberInput for other components to react to Apertaneeds-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
DiamondLightSource/sci-react-ui#278 · 1 commento ·
Tutte le issue di DiamondLightSource/sci-react-ui
Issue simili
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Crush Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
ElementsProject/cln-application#167 · 1 commento · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Quantco/pnpm-licenses#17 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100