Docs for writing document objects.