From 4213b83bf9103c89bd1db6c4fb01e9ee9fdcdeb7 Mon Sep 17 00:00:00 2001 From: Zach Lasiuk Date: Fri, 4 Oct 2024 15:00:00 -0500 Subject: [PATCH 1/2] slight verbiage change. --- .../demo-components/llm-chatbot/javascript--llm-chatbot.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/arm-design-system-hugo-theme/layouts/partials/demo-components/llm-chatbot/javascript--llm-chatbot.html b/themes/arm-design-system-hugo-theme/layouts/partials/demo-components/llm-chatbot/javascript--llm-chatbot.html index e1068ae189..7f6a661d16 100644 --- a/themes/arm-design-system-hugo-theme/layouts/partials/demo-components/llm-chatbot/javascript--llm-chatbot.html +++ b/themes/arm-design-system-hugo-theme/layouts/partials/demo-components/llm-chatbot/javascript--llm-chatbot.html @@ -645,7 +645,8 @@ } return readStream(); // Read the stream } else { - console.error('Error sending message to the server'); + console.error('Error sending message to the server',error); + console.log(response); showPopupPostConnection("Problem sending message - try sending a new message.","error"); } }) From cfc0f1b0ba4f1a71932c41b6059c3615c38b2143 Mon Sep 17 00:00:00 2001 From: Zach Lasiuk Date: Fri, 4 Oct 2024 15:21:47 -0500 Subject: [PATCH 2/2] Fixed Hugo .135 error in accessing csv file --- contributors.csv => assets/contributors.csv | 0 .../layouts/partials/general-formatting/metadata-table.html | 4 +++- themes/arm-design-system-hugo-theme/layouts/stats/list.html | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) rename contributors.csv => assets/contributors.csv (100%) diff --git a/contributors.csv b/assets/contributors.csv similarity index 100% rename from contributors.csv rename to assets/contributors.csv diff --git a/themes/arm-design-system-hugo-theme/layouts/partials/general-formatting/metadata-table.html b/themes/arm-design-system-hugo-theme/layouts/partials/general-formatting/metadata-table.html index 20e160d0a0..03fdd74e1b 100644 --- a/themes/arm-design-system-hugo-theme/layouts/partials/general-formatting/metadata-table.html +++ b/themes/arm-design-system-hugo-theme/layouts/partials/general-formatting/metadata-table.html @@ -47,7 +47,9 @@ -{{ range $i, $row := getCSV "," "contributors.csv" }} +{{ $csv := resources.Get "contributors.csv" }} +{{ $csv_content := $csv | transform.Unmarshal (dict "delimiter" ",") }} +{{ range $i, $row := $csv_content }} {{/* {{ if gt (len $authors_multiple) 0 }} diff --git a/themes/arm-design-system-hugo-theme/layouts/stats/list.html b/themes/arm-design-system-hugo-theme/layouts/stats/list.html index 966a54fcdf..b2f8064dd9 100644 --- a/themes/arm-design-system-hugo-theme/layouts/stats/list.html +++ b/themes/arm-design-system-hugo-theme/layouts/stats/list.html @@ -15,7 +15,9 @@ {{$company := ""}} {{$author := replace $author_urlized "-" " " | title }} - {{ range $i, $row := getCSV "," "contributors.csv" }} + {{ $csv := resources.Get "contributors.csv" }} + {{ $csv_content := $csv | transform.Unmarshal (dict "delimiter" ",") }} + {{ range $i, $row := $csv_content }} {{ if eq $author (index $row 0)}} {{ $company = index $row 1 }}