diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-09-17 21:43:27 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-09-17 21:47:32 +0200 |
commit | 7f211a48e0c443cbff90f028c5c92c496f66c62e (patch) | |
tree | 75bef77ad40299d6854b79520c8b0d9026306d89 /lib/pleroma/docs | |
parent | 35dcea3e13673b8a1a078a1f6fbc44f1e2098c22 (diff) | |
download | pleroma-7f211a48e0c443cbff90f028c5c92c496f66c62e.tar.gz |
docs/markdown.ex: child header as "- key (type): description"
Diffstat (limited to 'lib/pleroma/docs')
-rw-r--r-- | lib/pleroma/docs/markdown.ex | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/pleroma/docs/markdown.ex b/lib/pleroma/docs/markdown.ex index 8386dc2fb..58a42b323 100644 --- a/lib/pleroma/docs/markdown.ex +++ b/lib/pleroma/docs/markdown.ex @@ -44,6 +44,13 @@ defmodule Pleroma.Docs.Markdown do {:ok, config_path} 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 IO.write(file, " `#{inspect(suggestion)}`\n") end @@ -70,9 +77,4 @@ defmodule Pleroma.Docs.Markdown do print_suggestion(file, List.first(suggestions)) 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 |