From fd7ded3a44b8856d1dede06453aa4a09e42ec283 Mon Sep 17 00:00:00 2001 From: sabiwara Date: Fri, 28 Mar 2025 07:26:32 +0900 Subject: [PATCH] Fix usage of mermaid in ExUnit &co --- lib/elixir/scripts/mix_docs.exs | 38 ++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/lib/elixir/scripts/mix_docs.exs b/lib/elixir/scripts/mix_docs.exs index a20b7af6759..5b5d69a760a 100644 --- a/lib/elixir/scripts/mix_docs.exs +++ b/lib/elixir/scripts/mix_docs.exs @@ -13,5 +13,41 @@ canonical = System.fetch_env!("CANONICAL") logger: "https://hexdocs.pm/logger/#{canonical}", mix: "https://hexdocs.pm/mix/#{canonical}" ], - formatters: ["html", "epub"] + formatters: ["html", "epub"], + before_closing_body_tag: fn + :html -> + """ + + + """ + + _ -> + "" + end ]