docs/markdown.ex: child header as "- key (type): description"
This commit is contained in:
parent
35dcea3e13
commit
7f211a48e0
@ -44,6 +44,13 @@ defmodule Pleroma.Docs.Markdown do
|
|||||||
{:ok, config_path}
|
{:ok, config_path}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp print_child_header(file, child) do
|
||||||
|
IO.write(
|
||||||
|
file,
|
||||||
|
"- `#{inspect(child[:key])}` (`#{inspect(child[:type])}`): #{child[:description]}\n"
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
defp print_suggestion(file, suggestion) when is_list(suggestion) do
|
defp print_suggestion(file, suggestion) when is_list(suggestion) do
|
||||||
IO.write(file, " `#{inspect(suggestion)}`\n")
|
IO.write(file, " `#{inspect(suggestion)}`\n")
|
||||||
end
|
end
|
||||||
@ -70,9 +77,4 @@ defmodule Pleroma.Docs.Markdown do
|
|||||||
print_suggestion(file, List.first(suggestions))
|
print_suggestion(file, List.first(suggestions))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp print_child_header(file, child) do
|
|
||||||
IO.write(file, "- `#{inspect(child[:key])}` -`#{inspect(child[:type])}` \n")
|
|
||||||
IO.write(file, "#{child[:description]} \n")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user