violentmonkey.github.io icon indicating copy to clipboard operation
violentmonkey.github.io copied to clipboard

API page: no mention of `info.script.require`

Open nexushoratio opened this issue 2 years ago • 3 comments

https://violentmonkey.github.io/api/gm/#gm_info

It mentions info.script.resources, but not require.

nexushoratio avatar Sep 08 '23 22:09 nexushoratio

Ideally we should parse @violentmonkey/types package (either via regex or acorn with plugins or ts-morph) and generate GM_info accordingly. @gera2ld, WDYT? I can probably take a stab at it.

tophf avatar Sep 09 '23 06:09 tophf

Ideally we should try using a generator like TSDoc, TypeDoc, and CompoDoc.

tophf avatar Sep 09 '23 08:09 tophf

Hey we already have one in https://violentmonkey.github.io/types/ but it's not very convenient because it doesn't show the definitions of inner properties inlined, instead they're all linked.

tophf avatar Oct 01 '23 16:10 tophf