add ex_doc for publish documents