From 1241b5c77078c5ce4dfbd1a80de2b4f371e30102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Dom=C3=ADnguez?= Date: Thu, 9 Aug 2018 15:17:04 -0500 Subject: [PATCH] Add svg support --- lib/ex_doc/formatter/html.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ex_doc/formatter/html.ex b/lib/ex_doc/formatter/html.ex index df06c4919..3e8d94114 100644 --- a/lib/ex_doc/formatter/html.ex +++ b/lib/ex_doc/formatter/html.ex @@ -275,7 +275,7 @@ defmodule ExDoc.Formatter.HTML do |> Path.extname() |> String.downcase() - if extname in ~w(.png .jpg) do + if extname in ~w(.png .jpg .svg) do filename = Path.join(dir, "logo#{extname}") target = Path.join(output, filename) File.mkdir_p!(Path.dirname(target))