Use bash script to generate doc instead of cmake