From d1b84bda7482eb6368f7762d289b7eeca977bb49 Mon Sep 17 00:00:00 2001 From: Ian Maddaus Date: Wed, 5 May 2021 16:06:38 -0700 Subject: [PATCH] Update Hugo and correct how build previews are generated Signed-off-by: Ian Maddaus --- docs-chef-io/Makefile | 2 +- docs-chef-io/README.md | 2 +- docs-chef-io/netlify.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs-chef-io/Makefile b/docs-chef-io/Makefile index 6eaf21810..f48b497f8 100644 --- a/docs-chef-io/Makefile +++ b/docs-chef-io/Makefile @@ -14,7 +14,7 @@ serve: chef_web_docs chef_web_docs: if [ -d "chef-web-docs/" ]; then \ - pushd chef-web-docs && git reset HEAD --hard; git pull origin master && popd; \ + pushd chef-web-docs && git reset HEAD --hard; git clean -fd; git pull --ff-only origin master; rm -rf public && popd; \ else \ git clone https://github.com/chef/chef-web-docs.git; \ fi diff --git a/docs-chef-io/README.md b/docs-chef-io/README.md index a64a485b5..26451ed35 100644 --- a/docs-chef-io/README.md +++ b/docs-chef-io/README.md @@ -52,7 +52,7 @@ before the next promotion. ## Local Development Environment We use [Hugo](https://gohugo.io/), [Go](https://golang.org/), and[NPM](https://www.npmjs.com/) -to build the Chef Documentation website. You will need Hugo 0.78.1 or higher +to build the Chef Documentation website. You will need Hugo 0.83.1 or higher installed and running to build and view our documentation properly. To install Hugo, NPM, and Go on Windows and macOS: diff --git a/docs-chef-io/netlify.toml b/docs-chef-io/netlify.toml index 721c380c4..a640c4353 100644 --- a/docs-chef-io/netlify.toml +++ b/docs-chef-io/netlify.toml @@ -1,7 +1,7 @@ [build] [build.environment] - HUGO_VERSION = "0.78.1" + HUGO_VERSION = "0.83.1" HUGO_ENABLEGITINFO = "true" GO_VERSION = "1.15" NODE_ENV = "development"