Fixes #7898: ensure button type

Sets `type="button"` on all buttons in the docs