How to generate docs locally

Hi, How do I generate the docs locally. I would like to build the docs of a particular tag or version.

Any help would be appreciated.

Please checkout the instruction under the docs folder. Also the CI scripts under tests would be helpful