Deploying gitea-docs locally - REF_NOT_FOUND

I’m trying to deploy gitea docs locally.
I followed this guide → gitea/README.md at main · go-gitea/gitea · GitHub

But I got an error:
make server

go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.5.0
go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.2.2
go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.4.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.7.0
go: downloading github.com/evanw/esbuild v0.17.0
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.1
go: downloading github.com/go-openapi/jsonpointer v0.19.5
go: downloading github.com/invopop/yaml v0.1.0
go: downloading github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
go: downloading github.com/go-openapi/swag v0.19.5
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.0
go: downloading github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e
Start building sites …
hugo v0.111.3 linux/amd64 BuildDate=unknown
ERROR 2023/04/16 11:52:21 [zh-tw] REF_NOT_FOUND: Ref "doc/administration/config-cheat-sheet.zh-tw.md": "/home/cloufish/Downloads/hugo/gitea/docs/content/doc/usage/push.zh-tw.md:55:358": page not found
Error: Error building site: logged 1 error(s)
Built in 179 ms
exit status 255
make: *** [Makefile:20: server] Error 1

So I guess that there’s one translation file thats missing? How to ignore these errors (if it’s even possible)?

I got that as well. This worked for me: HUGO_DISABLELANGUAGES="zh-tw" make server

Reference: Multilingual Mode | Hugo

1 Like