diff --git a/.changeset/five-grapes-smash.md b/.changeset/five-grapes-smash.md new file mode 100644 index 0000000..bfbb519 --- /dev/null +++ b/.changeset/five-grapes-smash.md @@ -0,0 +1,5 @@ +--- +"@hyas/doks-core": patch +--- + +Allow custom kroki host diff --git a/layouts/_default/_markup/render-codeblock-kroki.html b/layouts/_default/_markup/render-codeblock-kroki.html index 700e913..7e86673 100644 --- a/layouts/_default/_markup/render-codeblock-kroki.html +++ b/layouts/_default/_markup/render-codeblock-kroki.html @@ -53,7 +53,7 @@ {{- $position := .Position }} {{- /* Initialize. */}} -{{- $apiEndpoint := "https://kroki.io/" }} +{{- $apiEndpoint := or site.Params.doks.krokiURL "https://kroki.io/" }} {{- $diagramType := $attrs.type | lower }} {{- /* Validate diagram type. */}}