Page MenuHomePhabricator

Add copy example button to jsdoc page
Closed, ResolvedPublic

Description

Would be nice to enhance the example code with a copy copy button like jsduck used to have.

We can probably base it on https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-site-tpl-copy.js by Krinkle

Demo:

Event Timeline

apaskulin awarded a token.
apaskulin moved this task from Backlog to Accepted Enhancement on the JSDoc WMF theme board.
apaskulin subscribed.

Change #1027110 had a related patch set uploaded (by TheDJ; author: TheDJ):

[jsdoc/wmf-theme@master] Add copy example button to jsdoc theme

https://gerrit.wikimedia.org/r/1027110

Change #1027110 merged by jenkins-bot:

[jsdoc/wmf-theme@master] Add copy example button to jsdoc theme

https://gerrit.wikimedia.org/r/1027110

Change #1027498 had a related patch set uploaded (by Alex Paskulin; author: Alex Paskulin):

[jsdoc/wmf-theme@master] styles: Remove background color from button

https://gerrit.wikimedia.org/r/1027498

Change #1027498 merged by jenkins-bot:

[jsdoc/wmf-theme@master] styles: Remove background color from button

https://gerrit.wikimedia.org/r/1027498