x/pkgsite: don't display README section if it is empty #40867
If a package doesn't have a README, don't display it.
What did you do?
What did you expect to see?
No README section:
What did you see instead?
An empty README section:
The text was updated successfully, but these errors were encountered:
I think if there was to be some auto generated content it would be a bit difficult:
I would opt for just a simple box of placeholder text saying something like "Looks like this project doesn't have a readme yet" or something similar. It requires minimal work to implement and can't break. I've not contributed to a golang project before but I'd be up for learning the process of contributing after completing the contributing guide.
Thanks for the input, @IamCathal! Let's go with that suggestion.
If you're interested in contributing this fix, let me know. Happy to help you get started and answer any questions in #pkgsite Slack.
https://github.com/golang/pkgsite/blob/master/CONTRIBUTING.md#getting-started is a good starting point.