document command

The document command has been updated so that it can reflect the use
of the `REPOSITORY` keyword in the styles. This may need further
fixes because in some tests not all the styles use repositories.