fixed build_doc to work with new examples