I have a jenkins global library and I want to document it. I want to use groovydoc.
The library contains classes and global vars
src/<package-name>
vars
Generating documentation for the classes is no problem:
groovydoc -sourcepath src -d doc 'main.pipeline' '*.groovy'
But how can I generate documentation for the vars?