Merge branch 'develop' into 'remove-twitter-api'
[akkoma] / lib / pleroma / docs / json.ex
index f191b60132f4fd53866681390cae039b5a07d4f9..d1cf1f487b447ae994f982dd5359c1211402a1d4 100644 (file)
@@ -15,10 +15,9 @@ defmodule Pleroma.Docs.JSON do
   end
 
   def compile do
-    with {config, _paths} <- Mix.Config.eval!("config/description.exs") do
+    with config <- Pleroma.Config.Loader.read("config/description.exs") do
       config[:pleroma][:config_description]
       |> Pleroma.Docs.Generator.convert_to_strings()
-      |> Jason.encode!()
     end
   end
 end