markdown generation to the new file
This commit is contained in:
parent
53a3ad6043
commit
69faec031d
@ -3,9 +3,9 @@ defmodule Pleroma.Docs.Markdown do
|
|||||||
|
|
||||||
@spec process(keyword()) :: {:ok, String.t()}
|
@spec process(keyword()) :: {:ok, String.t()}
|
||||||
def process(descriptions) do
|
def process(descriptions) do
|
||||||
config_path = "docs/config.md"
|
config_path = "docs/generated_config.md"
|
||||||
{:ok, file} = File.open(config_path, [:utf8, :write])
|
{:ok, file} = File.open(config_path, [:utf8, :write])
|
||||||
IO.write(file, "# Configuration\n")
|
IO.write(file, "# Generated configuration\n")
|
||||||
IO.write(file, "Date of generation: #{Date.utc_today()}\n\n")
|
IO.write(file, "Date of generation: #{Date.utc_today()}\n\n")
|
||||||
|
|
||||||
IO.write(
|
IO.write(
|
||||||
|
3
mix.exs
3
mix.exs
@ -172,8 +172,7 @@ defp aliases do
|
|||||||
"ecto.rollback": ["pleroma.ecto.rollback"],
|
"ecto.rollback": ["pleroma.ecto.rollback"],
|
||||||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
||||||
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
||||||
test: ["ecto.create --quiet", "ecto.migrate", "test"],
|
test: ["ecto.create --quiet", "ecto.migrate", "test"]
|
||||||
docs: ["pleroma.docs", "docs"]
|
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user