markdown generation to the new file
authorAlex S <alex.strizhakov@gmail.com>
Fri, 13 Sep 2019 16:02:42 +0000 (19:02 +0300)
committerAlex S <alex.strizhakov@gmail.com>
Fri, 13 Sep 2019 16:02:42 +0000 (19:02 +0300)
lib/pleroma/docs/markdown.ex
mix.exs

index 24930cc9f4d8d653f91a6d1347c3c3a92ae7e97b..8386dc2fbe207c7a380a47853a69c0a2ac39e910 100644 (file)
@@ -3,9 +3,9 @@ defmodule Pleroma.Docs.Markdown do
 
   @spec process(keyword()) :: {:ok, String.t()}
   def process(descriptions) do
-    config_path = "docs/config.md"
+    config_path = "docs/generated_config.md"
     {: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(
diff --git a/mix.exs b/mix.exs
index 96ef723b2d444d8ba3b649e376635a356fb49483..dfa53035886ac410227665d82a1af1fa38be4048 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -172,8 +172,7 @@ defmodule Pleroma.Mixfile do
       "ecto.rollback": ["pleroma.ecto.rollback"],
       "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
       "ecto.reset": ["ecto.drop", "ecto.setup"],
-      test: ["ecto.create --quiet", "ecto.migrate", "test"],
-      docs: ["pleroma.docs", "docs"]
+      test: ["ecto.create --quiet", "ecto.migrate", "test"]
     ]
   end