violentmonkey / violentmonkey.github.io

Website of Violentmonkey
https://violentmonkey.github.io/
30 stars 20 forks source link

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

Open nexushoratio opened 1 year ago

nexushoratio commented 1 year ago

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

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

tophf commented 1 year ago

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 commented 1 year ago

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

tophf commented 11 months ago

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.