Skip to content

Mermaid rendering issue when using hugo v0.145.0 #2197

@csviri

Description

@csviri

Environment

  • Version of Docsy you are using: 0.11.0
  • How are you using Docsy? As a:
    • Hugo module
    • NPM module
    • Git submodule
    • Other:
  • Version of Hugo you are using (output of hugo version): hugo v0.145.0+extended+withdeploy darwin/arm64 BuildDate=2025-02-26T15:41:25Z VendorInfo=brew
  • OS:
    • Linux
    • macOS
    • Windows
    • Other:

Problem

When try to render locally with this hugo version, it fails on mermaid scripts error:

ERROR render of "path/docs/content/en/docs/workflows/_index.md" failed: "/Users/me/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.11.0/layouts/docs/baseof.html:33:7": execute of template failed: template: docs/list.html:33:7: executing "docs/list.html" at <partial "scripts.html" .>: error calling partial: "/Users/me/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.11.0/layouts/partials/scripts.html:73:4": execute of template failed: template: partials/scripts.html:73:4: executing "partials/scripts.html" at <partial "scripts/mermaid.html" .>: error calling partial: "//Users/me/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/google/docsy@v0.11.0/layouts/partials/scripts/mermaid.html:5:10": execute of template failed: template: partials/scripts/mermaid.html:5:10: executing "partials/scripts/mermaid.html" at <.Err>: can't evaluate field Err in type resource.Resource

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions