-
Notifications
You must be signed in to change notification settings - Fork 19.1k
x/pkgsite: Reset button for doc examples #17223
Copy link
Copy link
Open
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.help wantedpkgsite
Milestone
Metadata
Metadata
Assignees
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.help wantedpkgsite
Type
Fields
Give feedbackNo fields configured for issues without a type.
example: https://golang.org/pkg/html/template/#example_Template_block
The only way to reset a code example when you mest up trying something is to refresh the page. This is annoying if you are on a large page. Note that ussualy you are just on this url https://golang.org/pkg/html/template without a hash tag to the example directly so your page wil jump up when you refresh.
Possible solutions update the hash tag when you expand the example
Or introduce a reset icon somewhere. (where and how i am not sure yet, feel free to discuss)