Skip to content

Commit

Permalink
colorized mermaid chart
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic BIDON <[email protected]>
  • Loading branch information
fredbi committed Mar 18, 2024
1 parent 69216ed commit 0927e57
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 0 additions & 2 deletions docs/contributing/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
10 changes: 9 additions & 1 deletion hack/doc-site/hugo/gendoc.sh
Original file line number Diff line number Diff line change
@@ -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)
13 changes: 13 additions & 0 deletions hack/doc-site/hugo/themes/go-swagger-assets/mermaid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"flowchart": {
"useMaxWidth":true
},
"theme": "base",
"themeVariables": {
"fontSize": "32px"
,"primaryColor": "#FCF5E5"
,"primaryBorderColor": "#89CFF0"
,"primaryTextColor": "#28282B"
,"lineColor": "#F3E5AB"
}
}

0 comments on commit 0927e57

Please sign in to comment.