Generate doc page or dir with template