little fix
authorAlex S <alex.strizhakov@gmail.com>
Tue, 3 Sep 2019 09:31:43 +0000 (12:31 +0300)
committerAlex S <alex.strizhakov@gmail.com>
Wed, 11 Sep 2019 06:25:33 +0000 (09:25 +0300)
lib/mix/tasks/pleroma/docs.ex

index fb8a2a01484af1bf02a6ee368ac666653884f2e7..4be53ce7553815ebf9b7beb329b1e3819a9ceb2d 100644 (file)
@@ -35,6 +35,8 @@ defmodule Mix.Tasks.Pleroma.Docs do
         descriptions[:pleroma][:config_description]
       )
 
-    Mix.shell().info([:green, "Markdown docs successfully generated to #{file_path}."])
+    type = if implementation == Pleroma.Docs.Markdown, do: "Markdown", else: "JSON"
+
+    Mix.shell().info([:green, "#{type} docs successfully generated to #{file_path}."])
   end
 end