Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hugo version 0.92.2 is deprecated. The documentation site cannot be run locally with Hugo version 0.138.0. #401

Open
Andygol opened this issue Nov 13, 2024 · 1 comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@Andygol
Copy link

Andygol commented Nov 13, 2024

Following the instructions from https://kubectl.docs.kubernetes.io/contributing/docs/ does not allow you to run the documentation site locally on the current version of Hugo 0.138.0. The version 0.92.2 specified in the netlify.toml is significantly out of date.

[context.production.environment]
HUGO_VERSION = "0.92.2"
[context.deploy-preview.environment]
HUGO_VERSION = "0.92.2"

WARN  DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, use "taxonomy" instead.
ERROR deprecated: config: languages.en.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.139.0. Put the value below [languages.en.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
ERROR deprecated: config: languages.zh.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.139.0. Put the value below [languages.zh.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
ERROR deprecated: config: languages.zh.time_format_default: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.139.0. Put the value below [languages.zh.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
ERROR deprecated: config: languages.zh.time_format_blog: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.139.0. Put the value below [languages.zh.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
Watching for changes in /src/{assets,content,i18n,layouts,package.json,static,themes}
Watching for config changes in /src/config.toml, /src/themes/docsy/config.toml, /src/go.mod
Start building sites … 
hugo v0.138.0+extended linux/arm64 BuildDate=2024-11-06T12:42:22Z VendorInfo=hugomods

ERROR Failed to read Git log: fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Built in 84 ms
Error: error building site: process: readAndProcessContent: "/src/content/en/_index.md:42:1": failed to extract shortcode: shortcode "blocks/section" must be closed or self-closed
make: *** [run] Error 1

It would be great to make appropriate fixes to allow local use of Hugo.


PS
I've tried to run Hugo in a container using next

Dockerfile.book

ARG HUGO_VERSION=
FROM hugomods/hugo:exts-${HUGO_VERSION}

WORKDIR /src
COPY . /src

# Install required packages
RUN npm install
RUN npm install autoprefixer

ENTRYPOINT ["hugo", "server", "--bind", "0.0.0.0"]

and Makefile.book.mk

IMAGE_NAME = kubectl_book

HUGO_VERSION ?= $(shell grep HUGO_VERSION ./netlify.toml | head -1 | cut -d '"' -f 2)

image:
	docker build -f Dockerfile.book --build-arg HUGO_VERSION=$(HUGO_VERSION) -t $(IMAGE_NAME) ./site

run:
	docker run --rm --init -it -v $(PWD)/site:/src $(IMAGE_NAME)
 make -f Makefile.book.mk image
 make -f Makefile.book.mk run
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

3 participants