class HtmlTheme extends Theme
- Alphabetic
- By Inheritance
- HtmlTheme
- Theme
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type ResourceTemplate = Template1[HtmlSiteModel, play.twirl.api.TxtFormat.Appendable]
- type Template = Template1[HtmlPageModel, play.twirl.api.HtmlFormat.Appendable]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addMathJaxResources(pc: HtmlPageContext): Option[(URI, Option[ConfigObject])]
If MathJax is needed by the page, add all resources and return the resolved main script URI and inline config.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
build: Unit
The full pipeline for building the site.
The full pipeline for building the site.
- Definition Classes
- Theme
-
def
buildAllPages: Vector[Page]
Get all source pages and synthetic pages
Get all source pages and synthetic pages
- Definition Classes
- Theme
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def createPageContext(siteContext: HtmlSiteContext, page: Page): HtmlPageContext
- def createPageModel(pc: HtmlPageContext, renderer: HtmlRenderer): HtmlPageModel
-
def
createSearchIndex(site: Site): Unit
- Attributes
- protected
- def createSiteContext(site: Site): HtmlSiteContext
- def createSiteModel(pms: Vector[HtmlPageModel]): HtmlSiteModel
- val defaultNoHighlightLanguages: Set[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getResourceTemplate(name: String): ResourceTemplate
- def getTemplate(name: String): Template
-
val
global: Global
- Definition Classes
- Theme
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val indexPage: Option[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
logTime[T](msg: String)(f: ⇒ T): T
- Definition Classes
- Logging
-
val
logger: Logger
- Definition Classes
- Logging
- val mathJaxExclude: FileMatcher
- val mermaidJS: String
- val minifyCSS: Boolean
- val minifyHTML: Boolean
- val minifyJS: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
noHighlightLanguages(p: Page): Set[String]
The language codes that should not be processed by a highlighter.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
render(site: Site): Unit
Render the site.
- def renderAttributedBlockQuote(n: AttributedBlockQuote, c: HtmlNodeRendererContext): Unit
-
def
renderAttributedHeading(pc: HtmlPageContext)(n: AttributedHeading, c: HtmlNodeRendererContext): Unit
Render a heading with an ID.
Render a heading with an ID. It can be overridden in subclasses as needed.
-
def
renderCode(hlr: HighlightResult, code: Node, c: HtmlNodeRendererContext, pc: HtmlPageContext): Unit
Render code that was run through the highlighter.
Render code that was run through the highlighter. This method is called for all fenced code blocks, indented code blocks and inline code. It can be overridden in subclasses as needed.
- def renderEmoji(pc: HtmlPageContext)(n: Emoji, c: HtmlNodeRendererContext): Unit
- def renderFencedCodeBlock(pc: HtmlPageContext)(n: AttributedFencedCodeBlock, c: HtmlNodeRendererContext): Unit
- def renderHighlitBlock(pc: HtmlPageContext)(n: HighlitBlock, c: HtmlNodeRendererContext): Unit
- def renderHighlitInline(pc: HtmlPageContext)(n: HighlitInline, c: HtmlNodeRendererContext): Unit
- def renderIndentedCodeBlock(pc: HtmlPageContext)(n: IndentedCodeBlock, c: HtmlNodeRendererContext): Unit
- def renderIndexBlock(pc: HtmlPageContext)(n: IndexBlock, c: HtmlNodeRendererContext): Unit
- def renderInlineCode(pc: HtmlPageContext)(n: Code, c: HtmlNodeRendererContext): Unit
- def renderInlineMath(pc: HtmlPageContext)(n: InlineMath, c: HtmlNodeRendererContext): Unit
-
def
renderMath(code: String, c: HtmlNodeRendererContext, pc: HtmlPageContext, mathType: String, block: Boolean): Unit
Render a TeX math, MML or ASCIIMath block or inline element.
Render a TeX math, MML or ASCIIMath block or inline element. The default implementation puts the code into a "script" element with the proper language code (which should be one of "tex", "asciimath" and "mml"). Inline elements get a preceding "MathJax_Preview" span element, for block elements this is created as a div and a "mode=display" annotation is added to the script.
- def renderMathBlock(pc: HtmlPageContext)(n: MathBlock, c: HtmlNodeRendererContext): Unit
-
def
renderMermaid(n: AttributedFencedCodeBlock, c: HtmlNodeRendererContext, pc: HtmlPageContext): Unit
Render a Mermaid diagram block.
Render a Mermaid diagram block. This does not add any dependency on Mermaid to the generated site. The method should be overwritten accordingly (unless a theme always adds it anyway).
-
def
renderSpecialImageBlock(pc: HtmlPageContext)(n: SpecialImageBlock, c: HtmlNodeRendererContext): Unit
This method should be overridden if
specialImageSchemesBlock
is used. -
def
renderSpecialImageInline(pc: HtmlPageContext)(n: SpecialImageInline, c: HtmlNodeRendererContext): Unit
This method should be overridden if
specialImageSchemesInline
is used. -
def
renderTabView(pc: HtmlPageContext)(n: TabView, c: HtmlNodeRendererContext): Unit
Render a tab view.
Render a tab view. The default implementation simply renders the content so that merged code blocks look no different than regular code blocks. Themes can override this method to render the actual tab view.
- def renderers(pc: HtmlPageContext): Seq[HtmlNodeRendererFactory]
-
def
resolveResource(uri: URI): URI
Resolve a resource URI to a source file location.
Resolve a resource URI to a source file location. Resource URIs can use use the following protocols: file, site (static site resources), webjar (absolute WebJar resource), theme (relative to theme class), classpath (relative to classpath root), template (generated from template)
- Definition Classes
- Theme
-
def
specialImageSchemesBlock: Set[String]
Extra image URI schemes to turn into
SpecialImage
nodes for rendering in block contextsExtra image URI schemes to turn into
SpecialImage
nodes for rendering in block contexts- Definition Classes
- Theme
-
def
specialImageSchemesInline: Set[String]
Extra image URI schemes to turn into
SpecialImage
nodes for rendering in inline contextsExtra image URI schemes to turn into
SpecialImage
nodes for rendering in inline contexts- Definition Classes
- Theme
- val suffix: String
-
def
suggestRelativePath(uri: URI): String
Get a default relative path for a resource URI
Get a default relative path for a resource URI
- Definition Classes
- Theme
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
synthesizePages(missingSyntheticPages: Vector[(String, URI)]): Vector[Page]
Synthesize configured synthetic pages pre-TOC.
Synthesize configured synthetic pages pre-TOC. Not all requested pages have to be created but only the ones that are returned will be available for resolving the TOC.
- Definition Classes
- Theme
-
def
syntheticPageURIs: Vector[(String, URI)]
Get synthetic page names and the mapped URIs for pages that should be created by the theme.
Get synthetic page names and the mapped URIs for pages that should be created by the theme. Any pages that have to be created before resolving the TOC should be part of this.
- Attributes
- protected
- Definition Classes
- Theme
- def targetDir: File
- def targetFile(uri: URI): File
- val tc: Config
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )