Skip to content

bug(docs): local docs site fails to build with recommended Hugo version #7028

Description

@Prachi-Gupta2808

What happened:
Running make run/site to preview the docs locally fails with a Hugo template error in docs/layouts/partials/scripts.html.

The error might be occuring because hugo.IsServer and .Store.Get are not supported in Hugo 0.92.2 which is the version recommended in the docs README.

What you expected to happen:
make run/site should successfully build and serve the documentation site locally at http://localhost:1313 as stated in the README.

How to reproduce it:

  1. Clone the repo
  2. Install Hugo v0.92.2+extended as recommended in docs/README.md
  3. Run make run/site from the root of the repository
  4. Site fails to build with the above errors

Environment:

  • piped version: N/A
  • control-plane version: N/A
  • Others:
    • Hugo version: v0.92.2+extended
    • OS: Tested on both Windows and WSL/Ubuntu
    • Errors are in docs/layouts/partials/scripts.html lines 14 and 23

I am attaching error ss for reference

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions