Skip to content

Commit

Permalink
Merge pull request #17902 from spowelljr/updateSite
Browse files Browse the repository at this point in the history
site: Build improvements to the site
  • Loading branch information
spowelljr authored Jan 8, 2024
2 parents 95f08ed + a506d6d commit 4e9d81b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ VERSION ?= v$(RAW_VERSION)

KUBERNETES_VERSION ?= $(shell egrep "DefaultKubernetesVersion =" pkg/minikube/constants/constants.go | cut -d \" -f2)
KIC_VERSION ?= $(shell egrep "Version =" pkg/drivers/kic/types.go | cut -d \" -f2)
HUGO_VERSION ?= $(shell egrep "HUGO_VERSION = \"" netlify.toml | cut -d \" -f2)

# Default to .0 for higher cache hit rates, as build increments typically don't require new ISO versions
ISO_VERSION ?= v1.32.1-1702708929-17806
Expand Down Expand Up @@ -928,7 +929,7 @@ out/hugo/hugo:
mkdir -p out
(cd site/themes/docsy && npm install)
test -d out/hugo || git clone https://github.com/gohugoio/hugo.git out/hugo
(cd out/hugo && go build --tags extended)
(cd out/hugo && git fetch origin && git checkout $(HUGO_VERSION) && go build --tags extended)

.PHONY: site
site: site/themes/docsy/assets/vendor/bootstrap/package.js out/hugo/hugo ## Serve the documentation site to localhost
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish = "site/public/"
command = "pwd && cd themes/docsy && npm install && git submodule update -f --init && cd ../.. && hugo"

[build.environment]
NODE_VERSION = "14.21.1"
NODE_VERSION = "20.10.0"
HUGO_VERSION = "v0.121.2"

[context.production.environment]
Expand Down
5 changes: 3 additions & 2 deletions site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defaultContentLanguageInSubdir = false
# Useful when translating.
enableMissingTranslationPlaceholders = true

disableKinds = ["taxonomy", "taxonomyTerm"]
disableKinds = ["taxonomy"]

# Highlighting config
pygmentsCodeFences = true
Expand Down Expand Up @@ -65,9 +65,10 @@ id = "G-JPP6RFM2BP"
[languages]
[languages.en]
title = "minikube"
description = "minikube is local Kubernetes"
languageName = "English"
weight = 1
[languages.en.params]
description = "minikube is local Kubernetes"

[params]
copyright = "The Kubernetes Authors -- "
Expand Down

0 comments on commit 4e9d81b

Please sign in to comment.