Convert gendocs.sh to use rake yard
Land #2780 - Convert gendocs.sh to use rake yard