AVATEAM-IT-SYSTEMHAUS / mkdocs-kroki-plugin

MkDocs plugin for Kroki-Diagrams
MIT License
50 stars 28 forks source link

Allow ServerURL to be set through environment variables #50

Closed zhammer closed 6 months ago

zhammer commented 10 months ago

We use mkdocs-kroki-plugin to render techdocs in our organization's Backstage.

We want to enforce ServerURL while building our docs in the techdocs builder, rather than having users set the ServerURL in their kroki: config.

  1. We don't want to risk a user forgetting to set this and sending diagrams to kroki.io
  2. We'd like to set different ServerURL per environment
secustor commented 9 months ago

Use KROKI_SERVER_URL that is how we are doing it for Backstage.

oniboni commented 6 months ago

Alternatively you can also use environment variables via mkdocs config:

  - kroki:
      ServerURL: !ENV KROKI_SERVER_URL