class DefaultTheme extends HtmlTheme
- Alphabetic
- By Inheritance
- DefaultTheme
- HtmlTheme
- Theme
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
ResourceTemplate = Template1[HtmlSiteModel, play.twirl.api.TxtFormat.Appendable]
- Definition Classes
- HtmlTheme
-
type
Template = Template1[HtmlPageModel, play.twirl.api.HtmlFormat.Appendable]
- Definition Classes
- HtmlTheme
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.
If MathJax is needed by the page, add all resources and return the resolved main script URI and inline config.
- Definition Classes
- HtmlTheme
-
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): DefaultPageContext
- Definition Classes
- DefaultTheme → HtmlTheme
-
def
createPageModel(pc: HtmlPageContext, renderer: HtmlRenderer): DefaultPageModel
- Definition Classes
- DefaultTheme → HtmlTheme
-
def
createSearchIndex(site: Site): Unit
- Attributes
- protected
- Definition Classes
- HtmlTheme
-
def
createSiteContext(site: Site): HtmlSiteContext
- Definition Classes
- HtmlTheme
-
def
createSiteModel(pms: Vector[HtmlPageModel]): HtmlSiteModel
- Definition Classes
- DefaultTheme → HtmlTheme
-
val
defaultNoHighlightLanguages: Set[String]
- Definition Classes
- HtmlTheme
-
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] )
- lazy val fontAwesome: Map[String, String]
- def generateSourceLinkText(uri: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getResourceTemplate(name: String): ResourceTemplate
- Definition Classes
- HtmlTheme
-
def
getTemplate(name: String): Template
- Definition Classes
- HtmlTheme
-
val
global: Global
- Definition Classes
- Theme
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
indexPage: Option[String]
- Definition Classes
- HtmlTheme
-
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
- Definition Classes
- HtmlTheme
-
val
mermaidJS: String
- Definition Classes
- HtmlTheme
-
val
minifyCSS: Boolean
- Definition Classes
- HtmlTheme
-
val
minifyHTML: Boolean
- Definition Classes
- HtmlTheme
-
val
minifyJS: Boolean
- Definition Classes
- HtmlTheme
-
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
- Definition Classes
- HtmlTheme
-
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.
- Definition Classes
- DefaultTheme → HtmlTheme
-
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.
- Definition Classes
- DefaultTheme → HtmlTheme
-
def
renderEmoji(pc: HtmlPageContext)(n: Emoji, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
def
renderFencedCodeBlock(pc: HtmlPageContext)(n: AttributedFencedCodeBlock, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
def
renderHighlitBlock(pc: HtmlPageContext)(n: HighlitBlock, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
def
renderHighlitInline(pc: HtmlPageContext)(n: HighlitInline, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
def
renderIndentedCodeBlock(pc: HtmlPageContext)(n: IndentedCodeBlock, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
def
renderIndexBlock(pc: HtmlPageContext)(n: IndexBlock, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
def
renderInlineCode(pc: HtmlPageContext)(n: Code, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
def
renderInlineMath(pc: HtmlPageContext)(n: InlineMath, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
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.
- Definition Classes
- HtmlTheme
-
def
renderMathBlock(pc: HtmlPageContext)(n: MathBlock, c: HtmlNodeRendererContext): Unit
- Definition Classes
- HtmlTheme
-
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).
- Definition Classes
- DefaultTheme → HtmlTheme
-
def
renderSpecialImageBlock(pc: HtmlPageContext)(n: SpecialImageBlock, c: HtmlNodeRendererContext): Unit
This method should be overridden if
specialImageSchemesBlock
is used.This method should be overridden if
specialImageSchemesBlock
is used.- Definition Classes
- HtmlTheme
-
def
renderSpecialImageInline(pc: HtmlPageContext)(n: SpecialImageInline, c: HtmlNodeRendererContext): Unit
This method should be overridden if
specialImageSchemesInline
is used.This method should be overridden if
specialImageSchemesInline
is used.- Definition Classes
- DefaultTheme → HtmlTheme
-
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.
- Definition Classes
- DefaultTheme → HtmlTheme
- def renderTableBlock(n: TableBlock, c: HtmlNodeRendererContext): Unit
-
def
renderers(pc: HtmlPageContext): Seq[HtmlNodeRendererFactory]
- Definition Classes
- DefaultTheme → HtmlTheme
-
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
- DefaultTheme → Theme
-
val
suffix: String
- Definition Classes
- HtmlTheme
-
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
- DefaultTheme → 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
- Definition Classes
- HtmlTheme
-
def
targetFile(uri: URI): File
- Definition Classes
- HtmlTheme
-
val
tc: Config
- Definition Classes
- HtmlTheme
-
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( ... )