@@ -26,16 +26,18 @@ import Servant.Server.Experimental.Auth
2626import Network.Wai
2727import Server.API.Messages
2828
29+docsWriterLong :: HasDocs api => String -> Proxy api -> IO ()
30+docsWriterLong file = writeFile ("docs/" ++ file ++ ".md") . normalizer . markdown . flip docsWithOptions (DocOptions 15)
2931docsWriter :: HasDocs api => String -> Proxy api -> IO ()
3032docsWriter file = writeFile ("docs/" ++ file ++ ".md") . normalizer . markdown . docs
3133
3234main = do
33− docsWriter "posts" $ pretty (Proxy :: Proxy ("posts" :> PostApi))
34− docsWriter "messages" $ pretty (Proxy :: Proxy (MessagesApi))
35+ docsWriterLong "posts" $ pretty (Proxy :: Proxy ("posts" :> PostApi))
36+ docsWriterLong "messages" $ pretty (Proxy :: Proxy (MessagesApi))
3537 docsWriter "all" $ pretty serverProxy
36− docsWriter "authentication" $ pretty (Proxy :: Proxy ("authentication" :> AuthenticationHandler :<|>
38+ docsWriterLong "authentication" $ pretty (Proxy :: Proxy ("authentication" :> AuthenticationHandler :<|>
3739 Authentication :> "authentication" :> "me" :> Post '[JSON] UserId ))
38− docsWriter "channels" $ pretty (Proxy :: Proxy ("channels" :> ChannelsApi))
40+ docsWriterLong "channels" $ pretty (Proxy :: Proxy ("channels" :> ChannelsApi))
3941 T.writeFile ("docs/Home.md") . (\t -> "```\n" <> t <> "```\n") $ layoutWithContext serverProxy (undefined :: Context (AuthHandler Request UserId ': '[]))
4042
4143