Documentation: Move generated files to priv/static/doc, add it to endpoint.ex
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 18 Dec 2018 16:05:36 +0000 (17:05 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 18 Dec 2018 16:05:36 +0000 (17:05 +0100)
lib/pleroma/web/endpoint.ex
mix.exs

index d79f61b2e613000375b252355d672ddf788b790e..564fc2c1d446a314668d1de3c0f8447f8ca4e2d4 100644 (file)
@@ -21,7 +21,7 @@ defmodule Pleroma.Web.Endpoint do
     at: "/",
     from: :pleroma,
     only:
-      ~w(index.html static finmoji emoji packs sounds images instance sw.js favicon.png schemas)
+      ~w(index.html static finmoji emoji packs sounds images instance sw.js favicon.png schemas doc)
   )
 
   # Code reloading can be explicitly enabled under the
diff --git a/mix.exs b/mix.exs
index 4af896fc970e46eeabe39a29c3311b2e9ae8b5c2..ff77f305fcfff4c5a9c5da4a10b7ffdcba93bf9c 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -22,7 +22,8 @@ defmodule Pleroma.Mixfile do
       docs: [
         logo: "priv/static/static/logo.png",
         extras: ["README.md", "config/config.md", "Pleroma-API.md"],
-        main: "readme"
+        main: "readme",
+        output: "priv/static/doc"
       ]
     ]
   end