Skip to content

Commit

Permalink
Fix error when building user guide with latest hugo version v0.141.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Jan 17, 2025
1 parent e6d9477 commit a0e9c1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/scripts/mermaid.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $version := .Site.Params.mermaid.version | default "latest" -}}

{{ $cdnurl := printf "https://cdn.jsdelivr.net/npm/mermaid@%s/dist/mermaid.esm.min.mjs" $version -}}
{{ with resources.GetRemote $cdnurl -}}
{{ with try (resources.GetRemote $cdnurl) -}}
{{ with .Err -}}
{{ errorf "Could not retrieve mermaid script from CDN. Reason: %s." . -}}
{{ end -}}
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish = "userguide/public"
command = "npm run docs-install && npm run build:preview"

[build.environment]
GO_VERSION = "1.22.5"
GO_VERSION = "1.23.5"
HUGO_THEME = "repo"

[context.production]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"devDependencies": {
"cpy-cli": "^5.0.0",
"hugo-extended": "^0.140.2",
"hugo-extended": "^0.141.0",
"netlify-cli": "^18.0.0",
"npm-check-updates": "^17.1.13",
"prettier": "^3.4.2"
Expand Down

0 comments on commit a0e9c1d

Please sign in to comment.