From 0333907d0fce0cbad706e9b4043781439ac54441 Mon Sep 17 00:00:00 2001 From: Jack Hickey Date: Mon, 7 Oct 2024 15:18:36 +0100 Subject: [PATCH] Fix docs docker failing without git context --- site/config/docker/config.toml | 1 + site/go.mod | 2 +- site/go.sum | 2 ++ site/hugo-entrypoint.sh | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 site/config/docker/config.toml diff --git a/site/config/docker/config.toml b/site/config/docker/config.toml new file mode 100644 index 0000000000..b9a32bfef6 --- /dev/null +++ b/site/config/docker/config.toml @@ -0,0 +1 @@ +enableGitInfo = false \ No newline at end of file diff --git a/site/go.mod b/site/go.mod index ce779fd629..6cdd4899dc 100644 --- a/site/go.mod +++ b/site/go.mod @@ -2,4 +2,4 @@ module github.com/nginx/agent/site go 1.23 -require github.com/nginxinc/nginx-hugo-theme v0.41.19 // indirect +require github.com/nginxinc/nginx-hugo-theme v0.41.20 // indirect diff --git a/site/go.sum b/site/go.sum index 5dbffbf03f..9b49cab4bf 100644 --- a/site/go.sum +++ b/site/go.sum @@ -1,2 +1,4 @@ github.com/nginxinc/nginx-hugo-theme v0.41.19 h1:CyZOhU8q0p3nQ+ZTFRx7c/Dq9rxV1mShADIHz0vDoHo= github.com/nginxinc/nginx-hugo-theme v0.41.19/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M= +github.com/nginxinc/nginx-hugo-theme v0.41.20 h1:6BJGRGdHW17OpkC4qbcHARo9TRrJPFrALBjFltwedf8= +github.com/nginxinc/nginx-hugo-theme v0.41.20/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M= diff --git a/site/hugo-entrypoint.sh b/site/hugo-entrypoint.sh index dc72123528..7462155cdf 100755 --- a/site/hugo-entrypoint.sh +++ b/site/hugo-entrypoint.sh @@ -1,4 +1,4 @@ #!/bin/sh hugo mod get -u github.com/nginxinc/nginx-hugo-theme -hugo $* +hugo --environment docker $*