@@ -303,14 +303,14 @@ data ShowContentTypes = AllContentTypes | FirstContentType
303 deriving (Eq, Ord, Show, Read, Bounded, Enum)
303 deriving (Eq, Ord, Show, Read, Bounded, Enum)
305-- | Customise how an 'API' is converted into documentation.
305-- | Customise how an 'API' is converted into documentation.
306−data ApiOptions = ApiOptions
306+data RenderingOptions = RenderingOptions
307 { _requestExamples :: !ShowContentTypes
307 { _requestExamples :: !ShowContentTypes
308 , _responseExamples :: !ShowContentTypes
308 , _responseExamples :: !ShowContentTypes
309 } deriving (Show)
309 } deriving (Show)
311-- | Default API generation options.
311-- | Default API generation options.
312−defApiOptions :: ApiOptions
312+defRenderingOptions :: RenderingOptions
313−defApiOptions = ApiOptions
313+defRenderingOptions = RenderingOptions
314 { _requestExamples = AllContentTypes
314 { _requestExamples = AllContentTypes
315 , _responseExamples = AllContentTypes
315 , _responseExamples = AllContentTypes
@@ -326,7 +326,7 @@ makeLenses ''DocIntro
326makeLenses ''DocNote
326makeLenses ''DocNote
327makeLenses ''Response
327makeLenses ''Response
328makeLenses ''Action
328makeLenses ''Action
329−makeLenses ''ApiOptions
329+makeLenses ''RenderingOptions
331-- | Generate the docs for a given API that implements 'HasDocs'. This is the
331-- | Generate the docs for a given API that implements 'HasDocs'. This is the
332-- default way to create documentation.
332-- default way to create documentation.
@@ -543,10 +543,10 @@ class ToAuthInfo a where
543-- | Generate documentation in Markdown format for
543-- | Generate documentation in Markdown format for
544-- the given 'API'.
544-- the given 'API'.
545markdown :: API -> String
545markdown :: API -> String
546−markdown = markdownWith defApiOptions
546+markdown = markdownWith defRenderingOptions
548−markdownWith :: ApiOptions -> API -> String
548+markdownWith :: RenderingOptions -> API -> String
549−markdownWith ApiOptions{..} api = unlines $
549+markdownWith RenderingOptions{..} api = unlines $
550 introsStr (api ^. apiIntros)
550 introsStr (api ^. apiIntros)
551 ++ (concatMap (uncurry printEndpoint) . sort . HM.toList $ api ^. apiEndpoints)
551 ++ (concatMap (uncurry printEndpoint) . sort . HM.toList $ api ^. apiEndpoints)