Set python build-docs timeout to 30 minutes and cpp build-docs timeout to 180 minutes (#83957)
Anything more means there's something wrong and we should just return. AFAIK the timeout doesn't include queuing time, only the job duration https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
![Screen Shot 2022-08-23 at 18 31 57](https://user-images.githubusercontent.com/475357/186298046-5637384f-887c-4c6a-a946-c101b6c66741.png)
This will help avoid having python build docs timeout after 6 hours.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83957
Approved by: https://github.com/ZainRizvi