aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/docs/markdown.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2020-07-12 17:23:33 +0200
committerhref <href@random.sh>2020-07-12 17:23:33 +0200
commit4347d2de5eb609bbfa1a206a5de5df925d3a0696 (patch)
tree8bbe69ae109f3bcc3e3d13572930017d6e3d38d4 /lib/pleroma/docs/markdown.ex
parent11dd29ef3f9bb5b0b3109eb572c3d5ae2c830ea3 (diff)
downloadpleroma-4347d2de5eb609bbfa1a206a5de5df925d3a0696.tar.gz
Config/Docs: Expand behaviour suggestions at runtime
Diffstat (limited to 'lib/pleroma/docs/markdown.ex')
-rw-r--r--lib/pleroma/docs/markdown.ex5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pleroma/docs/markdown.ex b/lib/pleroma/docs/markdown.ex
index 68b106499..da3f20f43 100644
--- a/lib/pleroma/docs/markdown.ex
+++ b/lib/pleroma/docs/markdown.ex
@@ -68,6 +68,11 @@ defmodule Pleroma.Docs.Markdown do
IO.write(file, " #{list_mark}`#{inspect(suggestion)}`\n")
end
+ defp print_suggestions(file, {:list_behaviour_implementations, behaviour}) do
+ suggestions = Pleroma.Docs.Generator.list_behaviour_implementations(behaviour)
+ print_suggestions(file, suggestions)
+ end
+
defp print_suggestions(_file, nil), do: nil
defp print_suggestions(_file, ""), do: nil