fivem-docs
fivem-docs copied to clipboard
Better explanations to build fivem docs
Currently, the fivem-docs uses a fork of Hugo. On GitHub, there are no binaries provided, nor instructions on how to build them.
It would be beneficial to provide a binary for everyone or explain the build process.
Here is a .bat script I created for this purpose. Before running it, you need to install Go and GCC (note that Cygwin will not work; MinGW 64-bit is recommended).
This script will build the Hugo binary (hugo.exe)
@echo off
REM Git clone here
git clone https://github.com/blattersturm/hugo.git
REM CD Folder
cd hugo
REM SWITCH BRANCH
git switch processed-content-variable # switch on the good branch
REM SET GO
go env -w CGO_ENABLED=1
REM CLEAN CACHE
go clean -modcache # just in case
REM Install Extended
go install --tags extended # if you don't have GCC won't work
REM Build Hugo
go build --tags extended # if you don't have GCC won't work