Making Pytorch Docs offline

How do we download/make offline the pytorch docs?

You can find the instructions to build the docs locally here.

A bit late to the party but for anyone ending up here: PyTorch doc is available on https://devdocs.io, sadly only in version 1.8.0.