From 0927e5705ff0135ce14ccaef7b45af426ea1e3ff Mon Sep 17 00:00:00 2001 From: Frederic BIDON Date: Mon, 18 Mar 2024 10:47:47 +0100 Subject: [PATCH] colorized mermaid chart Signed-off-by: Frederic BIDON --- docs/contributing/getting-started.md | 2 -- hack/doc-site/hugo/gendoc.sh | 10 +++++++++- .../hugo/themes/go-swagger-assets/mermaid.json | 13 +++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 hack/doc-site/hugo/themes/go-swagger-assets/mermaid.json diff --git a/docs/contributing/getting-started.md b/docs/contributing/getting-started.md index e944793cb..cf51336b6 100644 --- a/docs/contributing/getting-started.md +++ b/docs/contributing/getting-started.md @@ -84,8 +84,6 @@ The diagram below displays a family picture of the `go-openapi` eco-system. {{< mermaid class="optional" >}} --- title: "Direct package dependencies" -config: - theme: dark --- flowchart TD A((go-swagger)) diff --git a/hack/doc-site/hugo/gendoc.sh b/hack/doc-site/hugo/gendoc.sh index 0074831b5..1e550c7ad 100755 --- a/hack/doc-site/hugo/gendoc.sh +++ b/hack/doc-site/hugo/gendoc.sh @@ -1,3 +1,11 @@ #! /bin/bash git clone https://github.com/alex-shpak/hugo-book themes/hugo-book -hugo server --ignoreCache -D --printPathWarnings +hugo server --config hugo.yaml,goswagger.yaml \ + --buildDrafts \ + --cleanDestinationDir \ + --minify \ + --printPathWarnings \ + --ignoreCache \ + --noBuildLock \ + --logLevel info \ + --source $(pwd) diff --git a/hack/doc-site/hugo/themes/go-swagger-assets/mermaid.json b/hack/doc-site/hugo/themes/go-swagger-assets/mermaid.json new file mode 100644 index 000000000..848046550 --- /dev/null +++ b/hack/doc-site/hugo/themes/go-swagger-assets/mermaid.json @@ -0,0 +1,13 @@ +{ + "flowchart": { + "useMaxWidth":true + }, + "theme": "base", + "themeVariables": { + "fontSize": "32px" + ,"primaryColor": "#FCF5E5" + ,"primaryBorderColor": "#89CFF0" + ,"primaryTextColor": "#28282B" + ,"lineColor": "#F3E5AB" + } +}