@@ -876,30 +876,3 @@ instance (KnownSymbol path, HasDocs sublayout) => HasDocs (path :> sublayout) wh
876 endpoint' = endpoint & path <>~ [symbolVal pa]
876 endpoint' = endpoint & path <>~ [symbolVal pa]
877 pa = Proxy :: Proxy path
877 pa = Proxy :: Proxy path
881−-- | Serve your API's docs as markdown embedded in an html \<pre> tag.
883−-- > type MyApi = "users" :> Get [User]
884−-- > :<|> "docs :> Raw
886−-- > apiProxy :: Proxy MyApi
887−-- > apiProxy = Proxy
889−-- > server :: Server MyApi
890−-- > server = listUsers
891−-- > :<|> serveDocumentation apiProxy
892−serveDocumentation :: HasDocs api => Proxy api -> Server Raw
893−serveDocumentation proxy _request respond =
894− respond $ responseLBS ok200 [] $ cs $ toHtml $ markdown $ docs proxy
896−toHtml :: String -> String