Source of docs.fivem.net.
Install Hugo, then run:
git submodule update --init --recursive
hugo server -D
Install Wget, start a Hugo server, then run:
wget --spider -o ./wget.log -e robots=off -w 1 -r -p http://localhost:1313
More info on that here.