https://bugzilla.wikimedia.org/show_bug.cgi?id=51651

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Gadgets                     |General/Unknown
            Product|MediaWiki extensions        |Wikimedia

--- Comment #1 from Krinkle <[email protected]> ---
I don't see a straight forward path that will enable this within reasonable
time for production. jsduck as it is wouldn't integrate very well nor is it
very well inspected against potentially insecure input.

However, this might be an opportunity for a Tool Labs tool. A tool could
periodically (or, if limited for overload, directly after a change) scan wikis
for gadget definitions, then fetch the text for the relevant js pages of the
gadget, concatenate them, run them through jsduck and publish the result
somewhere (e.g. tools.wmflabs.org/gadgetdoc/commonswiki/Stockphoto).

And though that on itself would be a great step (a gadget or template could
show a link to there), it might even be possible to have the documentation be
accessible from within the wiki (e.g. not just a link in a template pointing
here, but actually without leaving the wiki).

First thing that comes to mind is the JSON manifests that jsduck generates in
addition to the html, those can be interpreted cross-domain and rendered
locally. Alternatively through a dialog and iframe the html can also be shown
directly, of course.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to