Skip to content

Commit bcaec96

Browse files
authored
Add docker specific docs config to disable gitInfo (#6597)
1 parent 5b06b2c commit bcaec96

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

site/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ HUGO_IMG?=hugomods/hugo:std-go-git-0.134.3
44

55
THEME_MODULE = github.com/nginxinc/nginx-hugo-theme
66

7-
HUGO_CI=docker run --rm -v ${CURDIR}:/src ${HUGO_IMG} hugo
7+
HUGO_CI=docker run --rm -v ${CURDIR}:/src ${HUGO_IMG} hugo --environment docker
88

99
ifeq ($(shell [ $(HUGO_VERSION) -gt 133 2>/dev/null ] && echo true || echo false), true)
1010
$(info Hugo is available and has a version greater than 133. Proceeding with build.)

site/config/docker/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enableGitInfo = false

site/hugo-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

33
hugo mod get -u github.com/nginxinc/nginx-hugo-theme
4-
hugo $*
4+
hugo --environment docker $*

0 commit comments

Comments
 (0)