Skip to content

Docs build fails on Hugo v0.128+ due to deprecated resources.ToCSS #7269

@ShivamJha2436

Description

@ShivamJha2436

What steps did you take and what happened:
While building the Contour documentation locally using the latest Hugo (v0.151.1+extended), the build fails with the following error:

ERROR deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and subsequently removed. Use css.Sass instead.

This error occurs because the docs site still uses the deprecated resources.ToCSS function in its HTML template.

What did you expect to happen:
The documentation site should build successfully with the latest stable version of Hugo.

Anything else you would like to add:
Updating the template to use css.Sass instead of resources.ToCSS resolves the issue.
I’m preparing a PR with the fix and will test it against the current Hugo version to ensure compatibility.

Environment:

  • Contour version: v1.33.0
  • Kubernetes version: (use kubectl version): N/A
  • Kubernetes installer & version: N/A
  • Cloud provider or hardware configuration: N/A
  • OS (e.g. from /etc/os-release): Arch Linux
  • Hugo version: v0.151.1+extended

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/needs-triageIndicates that an issue needs to be triaged by a project contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions