AVATEAM-IT-SYSTEMHAUS / mkdocs-kroki-plugin

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

Allow ServerURL to be set through environment variables #50

Closed zhammer closed 4 months ago

zhammer commented 8 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 7 months ago

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

oniboni commented 4 months ago

Alternatively you can also use environment variables via mkdocs config:

  - kroki:
      ServerURL: !ENV KROKI_SERVER_URL