Move metadata documentation to metadata method

This allows the documentation to show up in the correct place in the API
and guides sites.