From 7bd918eca4012fcc5362a04f1c38376632593d49 Mon Sep 17 00:00:00 2001 From: vankichi Date: Mon, 29 Jan 2024 22:43:19 +0900 Subject: [PATCH 1/3] :recycle: Add template for mermaid Signed-off-by: vankichi --- .../layouts/_default/_markup/render-codeblock-mermaid.html | 4 ++++ themes/vald/layouts/_default/single.html | 6 ++++++ themes/vald/layouts/partials/style.html | 7 ------- 3 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 themes/vald/layouts/_default/_markup/render-codeblock-mermaid.html diff --git a/themes/vald/layouts/_default/_markup/render-codeblock-mermaid.html b/themes/vald/layouts/_default/_markup/render-codeblock-mermaid.html new file mode 100644 index 000000000..94ea0cad0 --- /dev/null +++ b/themes/vald/layouts/_default/_markup/render-codeblock-mermaid.html @@ -0,0 +1,4 @@ +
+  {{- .Inner | safeHTML }}
+
+{{ .Page.Store.Set "hasMermaid" true }} diff --git a/themes/vald/layouts/_default/single.html b/themes/vald/layouts/_default/single.html index 54bdcc435..759e28d07 100644 --- a/themes/vald/layouts/_default/single.html +++ b/themes/vald/layouts/_default/single.html @@ -18,4 +18,10 @@

404 page not found

Page Top

{{ end }} +{{ if .Page.Store.Get "hasMermaid" }} + +{{ end }} {{ end }} diff --git a/themes/vald/layouts/partials/style.html b/themes/vald/layouts/partials/style.html index d0240db23..38f870965 100644 --- a/themes/vald/layouts/partials/style.html +++ b/themes/vald/layouts/partials/style.html @@ -10,11 +10,4 @@ - - {{ end }} From 080b65fad57900f70d8626b101cf0cd3ec777d4c Mon Sep 17 00:00:00 2001 From: vdaas-ci Date: Mon, 29 Jan 2024 13:45:03 +0000 Subject: [PATCH 2/3] :robot: auto update stage :arrow_up: Signed-off-by: vdaas-ci --- preview | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preview b/preview index 745af67b9..6c0299e7d 160000 --- a/preview +++ b/preview @@ -1 +1 @@ -Subproject commit 745af67b9947da75194f88afa2b5bda746aa9e60 +Subproject commit 6c0299e7d413c620063625c5736d45cee48154c5 From d21d7a1f2080a147f2ce6d2745bd4e7dfffe12f9 Mon Sep 17 00:00:00 2001 From: vankichi Date: Tue, 30 Jan 2024 16:40:52 +0900 Subject: [PATCH 3/3] :green_heart: Fix actions error Signed-off-by: vankichi --- .github/workflows/auto-update-content.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/auto-update-content.yml b/.github/workflows/auto-update-content.yml index d74395f56..fd8189730 100644 --- a/.github/workflows/auto-update-content.yml +++ b/.github/workflows/auto-update-content.yml @@ -28,10 +28,8 @@ jobs: id: go_version shell: bash run: | - GO_VERSION=${GO_VERSION:-`make version/go`} + GO_VERSION=$(make version/go) echo "version=${GO_VERSION}" >> $GITHUB_OUTPUT - env: - GO_VERSION: ${{ input.go_version }} - uses: actions/setup-go@v4 with: go-version: ${{ steps.go_version.outputs.version }}