feat: Show mermaid.live privacy policy only on mermaid.live

As the OSS project only controls the mermaid.live domain, we're adding an env variable to let anyone who is self hosting live editor to set their own privacy policy, or to hide the button if they want to.
This commit is contained in:
Sidharth Vinod
2026-03-16 23:29:13 +09:00
parent 15cdb7b64a
commit b466e8430e
7 changed files with 82 additions and 42 deletions
+2
View File
@@ -19,6 +19,8 @@ ARG MERMAID_KROKI_RENDERER_URL
ARG MERMAID_ANALYTICS_URL
ARG MERMAID_DOMAIN
ARG MERMAID_IS_ENABLED_MERMAID_CHART_LINKS
ARG MERMAID_PRIVACY_POLICY_URL
ARG MERMAID_HIDE_PRIVACY_POLICY
COPY . ./