-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Fix samples so that they present properly in the docs #97224
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
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
a29872c
to
d80049d
Compare
Gold has detected about 38 new digest(s) on patchset 1. |
4a61ddc
to
383d787
Compare
Contrary to what the bot thinks, I did add a sanity test that will make sure examples have some source code in them. It's just not in a file that ends in |
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.
LGTM
383d787
to
60a07cf
Compare
Description
Currently the code samples created with
{@tool sample}
(there are only a few of these) present incorrectly: they show an empty tab initially, and you can switch to a tab with the code in it.They should not have tabs at all, and show the code in a blue box.
This PR fixes that.
Related Issues
Tests