generate docs for client and server