fivem-docs icon indicating copy to clipboard operation
fivem-docs copied to clipboard

Better explanations to build fivem docs

Open spacevx opened this issue 11 months ago • 0 comments

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

spacevx avatar Mar 07 '24 21:03 spacevx