implement bin/build_doc to test pdf and html documentation building