Config/Docs: Expand behaviour suggestions at runtime
This commit is contained in:
parent
11dd29ef3f
commit
4347d2de5e
7 changed files with 47 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue