-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skipQuickStart param for README template #144
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great Rinat! Just a question, I see only testCommand
part uses hardcode YourContract.sol
above it, everything seems general? Like desc for three magic commands yarn chain
, yarn deploy
, yarn start
seems general right and they should ideally work in all extensions repo?
Just being picky here, also I think this generated README doesn't hold that much value I feel.
For extensions developer their extension's github repo README is important I feel and people using their extension will look at their extension's README and when they public their final product to github they will update this READE any which ways.
So yeah even your sections makes sense!
Yes, except challenge 6, there's also But despite this block is general, I think for challenges it's important that it should be description -> quick start (checkpoint 0) -> everything else (checkpoints 1+) as it is working now for every sre challenge. If we use the template for generating instance README without this PR changes, we can add (checkpoints 1+) to extra content, so it will be requirements/quick start (instead of checkpoint 0) -> description of the challenge -> everything else (checkpoint 1+) and it feels strange. Because for example you're starting the app and then starting to read it's description It could also be requirements/quick start part -> full challenge text as extra content, so this PR changes also are not required. In this case
If I understood you, you're proposing to generate only default readme for instances, right? And if users want to change README's of their instances, they should do it before publishing to gh? In this case many people will publish their SRE solutions to gh without changing README, and hence most part of all those solutions will have default README with no information about challenge and also with |
Yeah, and in the challenges, most people will read it on the SRE site (which is requesting the content from the GitHub README of the repo) In any case, it makes sense to have a README that makes sense. Not feeling super strong about anything, but the idea of Rinat skipping the quick start section makes sense to me.
Maybe we change the default to:
So You either:
What do you guys think? |
It would be great, but no contracts deployed when generating readme, so we don't know the final order of contracts.
Copying this again for this case from #144 (comment)
So it will be something like this for example for challenge 0
It's not very critical, just tried to make it clearer So I'm voting for
|
Hey Rinat, sorry, I didn't explain myself correctly
Shiv mentioned here #144 (review) the issue with From
To
So
When I was mentioning these two: So You either:
I was referring on how users will use the README template (That the current PR allows!)
This PR allows both scenarios, right? So I vote for the current approach. |
Now I understand, thank you for clarification, updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense! Thanks all!
Adds possibility to skip default Quick start block of README when creating extensions
Changed a bit newlines so it wont generate 2-3 empty lines depending on different options (well, sometimes it could be empty lines depending on extra lines of parameters or/plus for example when there's no
extraContent
; but it's still better than it was before, at least withskipQuickStart: true
since it adds new line because default quick start block becomes""
)See reason and how to test here