How to build hugo docs?

It is a newbie question.

I was given this link to find post-stable-release changes to docs in this link.

when I ran go get https://github.com/spf13/hugo/tree/master/docs

error came.

How to download / clone this branch and build latest doc html site>

Please help

First you have to clone the repository:

git clone https://github.com/spf13/hugo

Now, you can find the latest documentation for the currently developed version on the master branch. For older versions you have to switch to branches like v0.17.docs Replace 17 with any version number of Hugo to get the docs for older versions.

Be sure you are in the root directory of the cloned repository and run

hugo server -s docs