some changes
This commit is contained in:
parent
0559c82bdb
commit
6721301086
5 changed files with 44 additions and 26 deletions
|
|
@ -1,5 +1,7 @@
|
|||
defmodule Pleroma.Docs.JSON do
|
||||
@behaviour Pleroma.Docs.Formatter
|
||||
@behaviour Pleroma.Docs.Generator
|
||||
|
||||
@spec process(keyword()) :: {:ok, String.t()}
|
||||
def process(descriptions) do
|
||||
config_path = "docs/generate_config.json"
|
||||
{:ok, file} = File.open(config_path, [:write])
|
||||
|
|
@ -9,6 +11,7 @@ defmodule Pleroma.Docs.JSON do
|
|||
{:ok, config_path}
|
||||
end
|
||||
|
||||
@spec generate_json([keyword()]) :: String.t()
|
||||
def generate_json(descriptions) do
|
||||
Jason.encode!(descriptions)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue