Replies: 2 comments 2 replies
-
Do you mean the DX of writing them? I'm a bit hazy on the details but the differences stem from a few things:
I couldn't tell you exactly what the implications of all that are as it has been a while since I worked on any addons :)
You tell me :) |
Beta Was this translation helpful? Give feedback.
-
|
In the addon docs section, we could add recipes for e.g.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
This RFC proposes to
Problem Statement
Generally speaking, the contribution doc needs a bit of maintenance effort.
CONTRIBUTING.mdand the websiteyarn start) has a few defects and isn't what most of the team think is the easiest entry pointWe're also not entirely sure how much visibility the doc has. In particular:
CONTRIBUTING.mdmore/less often used than the website?Non-goals
Implementation
On doc visibility
#contributingto understand where contributors seek helpDocs,Addons,Showcase, etc.If we do move it to the top-level, the following sections can be grouped up:
On docs content
I want to make the following updates.
Landing page
Propose a featurerather thanWrite a RFC)Project setup
fnmon the websiteCONTRIBUTING.mdonce CI: Provide basic CI jobs for forked repositories, and disable our own jobs #32632 is mergednextyarn tasknot installed because they don't doyarn start, thinking they don't need a sandbox; and they instead try to yarn task compileyarnin the monorepo root and incode/yarn taskworks and how to install ityarnincode/that actually installs deps (and that it's equivalent toyarn task installyarn tasktasks is expired or up to dateFirst contribution workflow
yarn start, let's switch toyarn storybook:uiwhich is easier to run, has better HMR support, and provides more stories covering Storybook internalsyarn task uicommand if we want to provide a homogeneous interface to newcomersMaking code changes
yarn buildcommand could receive a bit of lovebuild --watchcrashes because of invalid code being saved in the IDE; then it needs to be relaunched, and Storybook too; we kinda explain that but imo not explicitly enough; let's discuss if this needs to go into Troubleshooting or within the sectionCONTRIBUTING.mdtalks about unlinked mode for sandboxes, I'm not sure if this is still relevant? Should we remove it?Making changes - adding stories & tests
Creating new
RecipespagesOn top of the "Code" page we currently have, it'd be nice to have dedicated recipe pages that explain how to
Because these all have different commands and workflows, and it's nice to have a summary page (cheat sheet) with all the commands and info you need for your task at hand.
The framework/addon recipes could redirect to relevant docs sections, and the other pages could explain the typical commands, testing standards, etc. For example, automigrations require linking to the built CLI from a third-party repo acting as a testbed. Encouraging this workflow, and encouraging publishing the testbed, will help reviewers down the line.
Switching to
Recipespages like this would allow us to separate the "monorepo setup" content (which makes up a large chunk of the current content, especially onCONTRIBUTING.md) from the workflow content. Setup is mostly useful at the beginning whereas workflows remain relevant and useful to consult.Expanding on
TroubleshootingcontentThis area is emptier than I expected. We could cover:
Framework specifics
--prodor is there more?Submitting PRs
yarn testshould pass before opening a PR; instead, we should recommend type check + prettier + build + test (which should match what is being tested in the fork CI jobs)Work in progresslabel; that no longer exists7.0.0-alpha.47; to be reworded to avoid explicit versionsReproductions
Templates
On addressing desync
Some hypotheses below. I don't have a strong opinion
Remove
CONTRIBUTING.mdand point to the docs site insteadPros:
Cons:
Replace
CONTRIBUTING.mdbyAGENTS.mdPros:
Cons:
Set up safeguard to warn us on GitHub when
CONTRIBUTING.mdchanges without changes to docsPros:
Cons:
Prior Art
No response
Deliverables
CONTRIBUTING.mdRisks
Adding more documentation means adding more documentation maintenance. We should ensure to limit repetition as much as possible, both across multiple file formats and within the docs pages.
Unresolved Questions
see checkboxes in RFC content above, not repeating to avoid duplication
Alternatives considered / Abandoned Ideas
No response
Beta Was this translation helpful? Give feedback.
All reactions