Fix documentation for config.resource

Fixes #1836