Generate documents.