Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for rendering generated documentation from PureScript code as HTML.
- data HtmlOutput a = HtmlOutput {
- htmlIndex :: [(Maybe Char, a)]
- htmlModules :: [(ModuleName, HtmlOutputModule a)]
- data HtmlOutputModule a = HtmlOutputModule {
- htmlOutputModuleLocals :: a
- htmlOutputModuleReExports :: [(InPackage ModuleName, a)]
- data HtmlRenderContext = HtmlRenderContext {
- currentModuleName :: ModuleName
- buildDocLink :: Namespace -> Text -> ContainingModule -> Maybe DocLink
- renderDocLink :: DocLink -> Text
- renderSourceLink :: SourceSpan -> Maybe Text
- nullRenderContext :: ModuleName -> HtmlRenderContext
- declNamespace :: Declaration -> Namespace
- packageAsHtml :: (InPackage ModuleName -> Maybe HtmlRenderContext) -> Package a -> HtmlOutput Html
- moduleAsHtml :: (InPackage ModuleName -> Maybe HtmlRenderContext) -> Module -> (ModuleName, HtmlOutputModule Html)
- makeFragment :: Namespace -> Text -> Text
- renderMarkdown :: Text -> Html
Documentation
data HtmlOutput a Source #
HtmlOutput | |
|
Functor HtmlOutput Source # | |
Show a => Show (HtmlOutput a) Source # | |
data HtmlOutputModule a Source #
HtmlOutputModule | |
|
Functor HtmlOutputModule Source # | |
Show a => Show (HtmlOutputModule a) Source # | |
data HtmlRenderContext Source #
HtmlRenderContext | |
|
nullRenderContext :: ModuleName -> HtmlRenderContext Source #
An HtmlRenderContext for when you don't want to render any links.
declNamespace :: Declaration -> Namespace Source #
packageAsHtml :: (InPackage ModuleName -> Maybe HtmlRenderContext) -> Package a -> HtmlOutput Html Source #
moduleAsHtml :: (InPackage ModuleName -> Maybe HtmlRenderContext) -> Module -> (ModuleName, HtmlOutputModule Html) Source #
renderMarkdown :: Text -> Html Source #
Render Markdown to HTML. Safe for untrusted input. Relative links are | removed.