Document `globals` option

See #1222, #1223, #1689, & #1715.

Signed-off-by: TimothyGu <timothygu99@gmail.com>
Merge pull request #1716 from TimothyGu/globals-doc

Document `globals` option